[R-pkg-devel] R CMD INSTALL succeeds while R CMD BUILD fails
Hong Ooi
hongooi @ending from micro@oft@com
Fri Jan 11 21:00:22 CET 2019
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
More information about the R-package-devel
mailing list