[Rd] Solaris build problem

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jun 14 17:23:47 CEST 2010


On Mon, 14 Jun 2010, Prof Brian Ripley wrote:

> At one level the answer is easy: cxxPack was not installed at system level 
> when that check was run, and I presume it was installed on the other build 
> systems.
>
> However, the vignette checker should be able to find the package from the 
> copy installed for checking, so I need to dig deeper to find out why 
> that did not happen.

And it because you have an inst/doc/Makefile that does not arrange to 
do so.  R_LIBS should be set appropriately at that point, but since 
you are not using --vanilla to run R (unlike R CMD check), it is 
overridden by other settings.

>
> On Mon, 14 Jun 2010, Dominick Samperi wrote:
>
>> I guess I should have been more explicit, here is the error as it appears
>> in CRAN logs for package cxxPack:
>> 
>> checking package vignettes in 'inst/doc' ... WARNING
>> Error in loadNamespace(name) : there is no package called 'cxxPack'
>> Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
>> Execution halted
>> Error in loadNamespace(name) : there is no package called 'cxxPack'
>> Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
>> Execution halted
>> "testDotproduct.cpp", line 1: Error: Could not open include
>> file<cxxPack.hpp>.
>> "testDotproduct.cpp", line 2: Error: RcppExport is not defined.
>> [clip]
>> 
>> It appears that the failure occurs at the very beginning of the vignette
>> where library(cxxPack) is called, since the other errors (not able to find
>> header files) would be expected after this error.
>> 
>> Could this be related to the parallel make problem that sometimes
>> occurs under Windows? There a bug in GNU make causes one package
>> to corrupt the environment of another.
>> 
>> Thanks,
>> Dominick
>> 
>> On Mon, Jun 14, 2010 at 9:24 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk>
>> wrote:
>> On Mon, 14 Jun 2010, Dominick Samperi wrote:
>>
>>       Hello,
>>
>>       I have package that builds fine under all OS's at CRAN
>>       except Solaris, and
>>       the Solaris problem occurs at vignette processing time:
>>       the library
>>       command fails. So, if a package Foo has a vignette is
>>       there a problem
>>       if an R code chunk runs library(Foo) from within a code
>>       chunk in
>>       the vignette under Solaris?
>> 
>> 
>> Many other packages do it ...
>> 
>>
>>       Thanks,
>>       Dominick
>> 
>> 
>> 
>> 
>> --
>> 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
>> 
>> 
>> 
>> 
>
> -- 
> 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

-- 
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


More information about the R-devel mailing list