[R-SIG-Mac] Fwd: Re: [R] Package seems to be present but library don't find it
bhh at xs4all.nl
Tue Apr 3 21:09:35 CEST 2012
On 03-04-2012, at 20:54, Duncan Murdoch wrote:
> On 03/04/2012 1:04 PM, Berend Hasselman wrote:
>> On 03-04-2012, at 18:50, Duncan Murdoch wrote:
>> > This is a message from R-help about installing a package in OSX. The NAMESPACE file contains an error, but the user didn't see the error message when he installed from the Mac GUI. Is R.app missing one of the output streams? I see the following in the Windows Rgui:
>> > > install.packages("d:/temp/HelloWorld_1.0.tar.gz", type="source", repos=NULL)
>> > * installing *source* package 'HelloWorld' ...
>> > ** R
>> > ** preparing package for lazy loading
>> > ** help
>> > Warning: C:/Users/murdoch/AppData/Local/Temp/Rtmpm6LVhP/R.INSTALLc4762d6689/HelloWorld/man/HelloWorld-package.Rd:32: All text must be in a section
>> > Warning: C:/Users/murdoch/AppData/Local/Temp/Rtmpm6LVhP/R.INSTALLc4762d6689/HelloWorld/man/HelloWorld-package.Rd:33: All text must be in a section
>> > *** installing help indices
>> > ** building package indices
>> > ** testing if installed package can be loaded
>> > Error in namespaceExport(ns, exports) : undefined exports: HelloWorld
>> > Error: loading failed
>> > Execution halted
>> > ERROR: loading failed
>> > * removing 'F:/R/svn/R-2-15-branch/library/HelloWorld'
>> > Warning messages:
>> > 1: running command 'F:/R/svn/R-2-15-branch/bin/i386/R CMD INSTALL -l "F:/R/svn/R-2-15-branch/library" "d:/temp/HelloWorld_1.0.tar.gz"' had status 1
>> > 2: In install.packages("d:/temp/HelloWorld_1.0.tar.gz", type = "source", :
>> > installation of package ‘d:/temp/HelloWorld_1.0.tar.gz’ had non-zero exit status
>> I have tried this.
>> The package is installed without complaints in both R.app and an interactive R from the Terminal.
>> Installation only seems to fail with R CMD INSTALL.
> Is it really installed, or are there just no error messages? Marc was finding that library(HelloWorld) was failing, and he didn't understand why.
No messages. Installed.
Error in library(HelloWorld) :
‘HelloWorld’ is not a valid installed package
R CMD INSTALL:
gives an error message and does not install.
Error in library(HelloWorld) : there is no package called ‘HelloWorld’
More information about the R-SIG-Mac