From ripley at stats.ox.ac.uk  Wed Nov 19 07:31:07 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 19 Nov 2008 06:31:07 +0000 (GMT)
Subject: [Rd] anyone familiar with this error?
In-Reply-To: <8ec76080811181407o6dc6b392q68a8948a7cf534e6@mail.gmail.com>
References: <8ec76080811181407o6dc6b392q68a8948a7cf534e6@mail.gmail.com>
Message-ID: <alpine.LFD.2.00.0811190628150.3895@gannet.stats.ox.ac.uk>

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



[Rd] anyone familiar with this error?
Prof Brian Ripley