If / else offers a package description

Is there a way to make an ifelse statement in the hint field of a package, depending on the type of OS. For example, the installr package would be pleasant for a Windows user and strongly associated with the package, but it is available only for Windows users. This means that the note will be raised in the CRAN check for a Mac or Linux user.

I currently have a package that looks something like this:

 Package: awesomeR Type: Package Title: A collection of awesomeness Version: 0.1.2 Date: 2013-02-18 Author: Guy Smiley Maintainer: Guy < guy@gmail.com > Description: it pretty nifty License: GPL-2 URL: http://crazyville LazyData: TRUE Depends: R (>= 2.15) Suggests: pander, installr, 

Perhaps the answer either offers (and accepts notes) or not.

+7
source share
1 answer

I don’t think you need a special switch for offers according to the OS for checking the tap.

If it does not exist on / for a specific platform, it will not be installed. I think that such a package will not even be in CRAN dependencies.

As far as I know, the proposed packages suggest additional parameters and expand examples and functionality, but they are not crucial for your package, and many users will not skip them ... but even if it is a Linux or MAc user, I think it's good to know that there are packages offered ... and if they want them to be able to use it on another platform.

So my answer is, suppose.

I also think that we should still strive for cross-platform packages =)

+3
source

All Articles