Skip to content
Prev 6365 / 12125 Next

[R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

I have tests in my code to detect when something like that is not 
available.


	  I also have code in "\examples" to skip tests that would encounter 
that.


	  Hadley's "testthhat:skip_on_cran" is supposed to suppress tests like 
that on CRAN.  I have so far failed to understand how to use this 
function that Hadley wrote.  Instead, I use things like the following:


if(!fda::CRAN()){
# Code that I want to run everyplace that's NOT CRAN


}


	  When I wrote "fda::CRAN", I was told that I shouldn't do it, but I 
didn't see a better option, and I've been using it for several years now 
without being given a reason to discontinue using it or (better?) being 
given an alternative that seems better to me.


	  Spencer
On 2020-12-12 12:40, Michael L Friendly wrote:

Thread (15 messages)