Gabor/Joris,

Thanks for the suggestions!
I'll try it out and see if it reaches the CRAN servers.

best,
Jan


Jan Wijffels
Statistician
www.bnosac.be  | +32 486 611708

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday 11 May 2020 15:13, Joris Meys <joris.m...@ugent.be> wrote:

> Hi Jan,
>
> To add to the suggestion of Gabor and Duncan, it might be a good idea to add 
> a packageStartupMessage that warns the user about the problem when running on 
> a 32bit system. You can easily extract that info from R.Version()$arch . That 
> might help negotiating with CRAN.
>
> Kind regards
> Joris
>
> Joris Meys
> Statistician
> T +32 9 264 61 79
>
> Department Data Analysis and Mathematical Modelling
>
> Campus Coupure, Block A 1st floor 110.050, Coupure links 653, B-9000 Ghent, 
> Belgium
> T administration office +32 9 264 59 32
>
> www.ugent.be
>
> e-maildisclaimer
>
> From: R-package-devel r-package-devel-boun...@r-project.org on behalf of Jan 
> Wijffels jwijff...@bnosac.be
> Sent: Monday, May 11, 2020 2:46 PM
> To: Duncan Murdoch
> Cc: r-package-devel@r-project.org
> Subject: Re: [R-pkg-devel] how to specify to let a package only build 64bit 
> on CRAN
>
> 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.dun...@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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to