[R-pkg-devel] how to specify to let a package only build 64bit on CRAN

Gábor Csárdi c@@rd|@g@bor @end|ng |rom gm@||@com
Mon May 11 15:05:57 CEST 2020

Hi Jan,

this is the only example that I could find:

I.e. you can have an 'Archs' field in DESCRIPTION, and apparently you
can set that to 'i386' or 'x64' or both.

 I don't know what OSes support this field, and this package hasn't
been updated for a while, so I am not 100% sure, but this definitely
seems like the proper way to declare a 64-bit only package.


On Mon, May 11, 2020 at 1:50 PM Jan Wijffels <jwijffels using bnosac.be> wrote:
> Duncan,
> Thanks for the reply. Let me make this more clear.
> The R package reticulate works on 32bit and 64bit. My golgotha package depends on reticulate and an extra Python package called torch which is not available for 32bit platforms. This is specified in the DESCRIPTION file at https://github.com/bnosac/golgotha/blob/master/DESCRIPTION#L17
> For that reason R CMD check will fail on CRAN for 32bit. Hence my question. How do I specify this in the package such that I can distribute it on CRAN.
> best,
> Jan
> Jan Wijffels
> Statistician
> www.bnosac.be  | +32 486 611708
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Monday 11 May 2020 14:39, Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
> > On 11/05/2020 7:54 a.m., Jan Wijffels wrote:
> >
> > > Hello everyone,
> > > I have a package which I would like to host on CRAN. The package is at https://github.com/bnosac/golgotha
> > > The package only builds on 64bit however because the package uses R package reticulate which requires a python library called torch which does not build on 32 bit platforms.
> > > So installation only works using INSTALL_opts = "--no-multiarch"
> > > How do you specify this to the CRAN maintainers that this is the way it should be set up on CRAN such that it only is built for 64bit systems.
> >
> > I don't see how your package has any 32 bit dependence, since it has no
> > src directory. It's probably sufficient to declare the dependency on
> > reticulate, which indirectly implies the 32 bit dependence. But if
> > reticulate works on 32 bit systems as long as users don't need "torch",
> > then just state that.
> >
> > One thing I'd recommend: you should try to change the dependency from
> > Depends to Imports. If there are a few reticulate functions that you
> > want your users to have access to, you can import them and re-export
> > them so they're available from your package as well.
> >
> > Duncan
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

More information about the R-package-devel mailing list