[R-pkg-devel] R CMD INSTALL succeeds while R CMD BUILD fails

Uwe Ligges ligge@ @ending from @t@ti@tik@tu-dortmund@de
Fri Jan 11 22:48:11 CET 2019


Please report.

Best,
Uwe Ligges

On 11.01.2019 22:15, Sam Albers wrote:
> Oh you are totally right. And similarly, an .rds file bonks with R CMD build:
> 
> $ R CMD build foo.rds
> * checking for file 'foo.rds/DESCRIPTION' ... OK
> * preparing 'foo.rds':
> * checking DESCRIPTION meta-information ... OK
> * checking for LF line-endings in source and make files and shell scripts
> * checking for empty or unneeded directories
> Warning in gzfile(file, "rb") :
>    cannot open compressed file 'foo.rds', probable reason 'Permission denied'
> Error in gzfile(file, "rb") : cannot open the connection
> Execution halted
> 
> However this seems like a bug doesn't it? I am able to install a *.rds
> or *.rdata package but unable to build it. Seems like a) I should be
> able to install and b) these could be added to the list of unavailable
> package names. Asking in the context of whether this is worth
> reporting as a bug.
> 
> Sam
> 
> On Fri, Jan 11, 2019 at 12:00 PM Hong Ooi <hongooi using microsoft.com> wrote:
>>
>> It looks like the ".rdata" in your package name is confusing R CMD BUILD into thinking there is a .rdata file involved. Consider renaming it to "bcmaps.data" or something similar.
>>
>>
>> -----Original Message-----
>> From: R-package-devel <r-package-devel-bounces using r-project.org> On Behalf Of Sam Albers
>> Sent: Friday, 11 January, 2019 2:07 PM
>> To: r-package-devel using r-project.org
>> Subject: [R-pkg-devel] R CMD INSTALL succeeds while R CMD BUILD fails
>>
>> Hello all,
>>
>> I am experiencing some issues with building a package that we are hosting on GitHub. The package itself is quite large.  It is a data package with a bunch of spatial files stored as .rds files.
>>
>> The repo is located here: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbcgov%2Fbcmaps.rdata&data=02%7C01%7Chongooi%40microsoft.com%7C6ac8c309c7b84a8de4d208d677fef252%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636828334223679364&sdata=GosuFnTADrpxapDMNQSMxKoI9B4aPtIw7LwPwoCmYxU%3D&reserved=0
>>
>> If we clone that package to local machine via:
>> git clone https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbcgov%2Fbcmaps.rdata&data=02%7C01%7Chongooi%40microsoft.com%7C6ac8c309c7b84a8de4d208d677fef252%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636828334223679364&sdata=GosuFnTADrpxapDMNQSMxKoI9B4aPtIw7LwPwoCmYxU%3D&reserved=0
>>
>> The first oddity is that the package installs successfully using this:
>>
>> $ R CMD INSTALL "./bcmaps.rdata"
>>
>> But fails when I try to build the package:
>>
>> $ R CMD BUILD "./bcmaps.rdata"
>> * checking for file './bcmaps.rdata/DESCRIPTION' ... OK
>> * preparing 'bcmaps.rdata':
>> * checking DESCRIPTION meta-information ... OK
>> * checking for LF line-endings in source and make files and shell scripts
>> * checking for empty or unneeded directories
>> * looking to see if a 'data/datalist' file should be added Warning in gzfile(file, "rb") :
>>    cannot open compressed file 'bcmaps.rdata', probable reason 'Permission denied'
>> Error in gzfile(file, "rb") : cannot open the connection Execution halted
>>
>>
>> The second oddity is that if I remove the . from the Package name in the DESCRIPTION file, the build proceeds smoothly:
>>
>> $ R CMD build "./bcmaps.rdata"
>> * checking for file './bcmaps.rdata/DESCRIPTION' ... OK
>> * preparing 'bcmapsrdata':
>> * checking DESCRIPTION meta-information ... OK
>> * checking for LF line-endings in source and make files and shell scripts
>> * checking for empty or unneeded directories
>> * looking to see if a 'data/datalist' file should be added
>> * building 'bcmapsrdata_0.2.0.tar.gz'
>>
>> I am assuming that R CMD install builds the package internally so I find it confusing that I am not able to build it myself. Similarly confusing is the lack of a . in the package name indicative of anything?
>>
>> Does anyone have any idea what's going on here? Am I missing something obvious?
>>
>> Thanks in advance,
>>
>> Sam
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-package-devel&data=02%7C01%7Chongooi%40microsoft.com%7C6ac8c309c7b84a8de4d208d677fef252%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636828334223679364&sdata=0r%2FFfRH6eYqRPLAAFLprWAttPip02VKV0GIqBOtVhI8%3D&reserved=0
> 
> ______________________________________________
> 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