[whit at linuxsvr R.packages]$ sudo R CMD INSTALL portfolio.construction * Installing to library '/usr/local/lib64/R/library' * Installing *source* package 'portfolio.construction' ... ** R ** preparing package for lazy loading Loading required package: fts Loading required package: quadprog Loading required package: Rexcelpoi terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid /usr/local/lib64/R/bin/INSTALL: line 455: 25001 Done ( echo "options(warn=1); invisible(.libPaths(c(\"${lib}\", .libPaths()))); .getRequiredPackages(); tools:::makeLazyLoading(\"${R_PACKAGE_NAME}\", \"${lib}\")" ) 25002 Aborted (core dumped) | R_DEFAULT_PACKAGESLC_ALL=C "${R_EXE}" --vanilla --slave ERROR: lazy loading failed for package 'portfolio.construction' ** Removing '/usr/local/lib64/R/library/portfolio.construction' ** Restoring previous '/usr/local/lib64/R/library/portfolio.construction' [whit at linuxsvr R.packages]$ I've tried a few things, but can't seem to track down the problem. it's leaving core files in my package directory. (not in the .Rcheck directory, directly in the package dir) Thanks, Whit
Don't really know but you could see if the info in Avoiding R Bugs section on the http:/r-proto.googlecode.com page applies, particularly the first point on Lazy Loading. On Tue, Nov 18, 2008 at 5:07 PM, Whit Armstrong <armstrong.whit at gmail.com> wrote:> [whit at linuxsvr R.packages]$ sudo R CMD INSTALL portfolio.construction > * Installing to library '/usr/local/lib64/R/library' > * Installing *source* package 'portfolio.construction' ... > ** R > ** preparing package for lazy loading > Loading required package: fts > Loading required package: quadprog > Loading required package: Rexcelpoi > terminate called after throwing an instance of 'std::logic_error' > what(): basic_string::_S_construct NULL not valid > /usr/local/lib64/R/bin/INSTALL: line 455: 25001 Done > ( echo "options(warn=1); invisible(.libPaths(c(\"${lib}\", > .libPaths()))); .getRequiredPackages(); > tools:::makeLazyLoading(\"${R_PACKAGE_NAME}\", \"${lib}\")" ) > 25002 Aborted (core dumped) | R_DEFAULT_PACKAGES> LC_ALL=C "${R_EXE}" --vanilla --slave > ERROR: lazy loading failed for package 'portfolio.construction' > ** Removing '/usr/local/lib64/R/library/portfolio.construction' > ** Restoring previous '/usr/local/lib64/R/library/portfolio.construction' > [whit at linuxsvr R.packages]$ > > > I've tried a few things, but can't seem to track down the problem. > > it's leaving core files in my package directory. (not in the .Rcheck > directory, directly in the package dir) > > Thanks, > Whit > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
On Tue, 18 Nov 2008, Whit Armstrong wrote:> [whit at linuxsvr R.packages]$ sudo R CMD INSTALL portfolio.construction > * Installing to library '/usr/local/lib64/R/library' > * Installing *source* package 'portfolio.construction' ... > ** R > ** preparing package for lazy loading > Loading required package: fts > Loading required package: quadprog > Loading required package: Rexcelpoi > terminate called after throwing an instance of 'std::logic_error' > what(): basic_string::_S_construct NULL not valid > /usr/local/lib64/R/bin/INSTALL: line 455: 25001 Done > ( echo "options(warn=1); invisible(.libPaths(c(\"${lib}\", > .libPaths()))); .getRequiredPackages(); > tools:::makeLazyLoading(\"${R_PACKAGE_NAME}\", \"${lib}\")" ) > 25002 Aborted (core dumped) | R_DEFAULT_PACKAGES> LC_ALL=C "${R_EXE}" --vanilla --slave > ERROR: lazy loading failed for package 'portfolio.construction' > ** Removing '/usr/local/lib64/R/library/portfolio.construction' > ** Restoring previous '/usr/local/lib64/R/library/portfolio.construction' > [whit at linuxsvr R.packages]$ > > > I've tried a few things, but can't seem to track down the problem. > > it's leaving core files in my package directory. (not in the .Rcheck > directory, directly in the package dir)Well, you did INSTALL, not 'check', so there is no .Rcheck directory. The issue is that it cannot load your package, and it seems the error is in C++ code in the package or a dependency. You've given use very little to go on beyond that. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595