[Rd] A package requiring cmake

Duncan Murdoch murdoch.duncan at gmail.com
Tue Jun 28 14:01:45 CEST 2016

On 28/06/2016 7:38 AM, Holger Hoefling wrote:
> Hi,
> I am currently preparing a package for hdf5 that ships and compiles from
> source on windows. The intention here is to avoid having to ship or
> download a binary from an unknown source. As a dependency, I need the cmake
> program installed.
> Here my question:
> 1. Is cmake installed on win-builder? If not, could it be installed? If
> yes, in a specified standard location or available through the PATH
> variable?

It's not on the Winbuilder path.

> 2. How do I specify that a package is only intended for a specific OS?

Use the OS_type field in the DESCRIPTION file.

> On another note here:
> The package I am preparing would only compile the binaries on windows. On
> other systems, I would prefer to have people install them thought native
> services (e.g. apt-get) to make configuration etc. more manageable for
> system administrators (even though that puts a little more burden on the
> end-user on these systems).

List the libraries as SystemRequirements in the DESCRIPTION.
> Second question:
> Is there a way to specify an OS-specific dependency? As the hdf5lib package
> is rather large and intended for windows only, I would prefer if it isn't
> downloaded anywhere else.

You can make a Windows-only package that contains it, but it's quite 
possible CRAN won't accept it.  See their policy document statement on 
portable code.

Duncan Murdoch
> thanks for your help
> Holger
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

More information about the R-devel mailing list