[R-pkg-devel] How to fix R CRAN submission check warning: cannot load without being on the library search path

Dirk Eddelbuettel edd at debian.org
Mon Sep 25 23:10:56 CEST 2017


On 25 September 2017 at 20:23, Zhenke Wu wrote:
| Hi all,
| 
| I have submitted my package via CRAN submission page but had the following
| error that I couldn't fix. It has something to do with package 'rrcov'. On
| my machine (OSX), rrcov is installed. How can I make the CRAN package
| checking server install 'rrcov'?

Your DESCRIPTION file [1] does not list rrcov as an Imports, Suggests,
Depends -- so the test machine does not install it.

Adding it should fix your issues.

Dirk

[1] https://github.com/zhenkewu/baker/blob/master/DESCRIPTION
| 
| Thanks!
| Zhenke
| 
| ** checking loading without being on the library search path ... WARNING
| Error: package or namespace load failed for 'baker' in loadNamespace(i,
| c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
|  there is no package called 'rrcov'
| Execution halted
| 
| It looks like this package has a loading problem when not on .libPaths:
| see the messages for details.
| ** checking use of S3 registration ... OK
| * loading checks for arch 'x64'
| ** checking whether the package can be loaded ... ERROR
| Loading this package had a fatal error status code 1
| Loading log:
| Error: package or namespace load failed for 'baker' in library.dynam(lib,
| package, package.lib):
|  DLL 'rrcov' not found: maybe not installed for this architecture?
| In addition: Warning message:
| S3 methods 'T2.test.default', 'T2.test.formula', 'Wilks.test.default',
| 'Wilks.test.formula', 'Wilks.test.data.frame', 'Wilks.test.matrix',
| 'PcaClassic.default', 'PcaClassic.formula', 'PcaHubert.default',
| 'PcaHubert.formula', 'PcaLocantore.default', 'PcaLocantore.formula',
| 'PcaCov.default', 'PcaCov.formula', 'PcaProj.default', 'PcaProj.formula',
| 'PcaGrid.default', 'PcaGrid.formula', 'LdaClassic.default',
| 'LdaClassic.formula', 'Linda.default', 'Linda.formula', 'LdaPP.default',
| 'LdaPP.formula', 'QdaClassic.default', 'QdaClassic.formula',
| 'QdaCov.default', 'QdaCov.formula' were declared in NAMESPACE but not found
| Execution halted
| ** DONE
| Status: 1 ERROR, 1 WARNING, 1 NOTE
| 
| 	[[alternative HTML version deleted]]
| 
| ______________________________________________
| R-package-devel at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-package-devel

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-package-devel mailing list