[R-SIG-Mac] Fwd: Re: [R] Package seems to be present but library don't find it
simon.urbanek at r-project.org
Tue Apr 3 21:09:03 CEST 2012
On Apr 3, 2012, at 2:54 PM, 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.
.. but the reason is shown when loaded (and only then AFAICS) ... All this is nonsensical/unhelpful, because it doesn't even show the original output. Also note that test-loading default (which is what fails) varies by platform and R version, so the output above is irrelevant and has really nothing to do with package installation or the GUI AFAICT ...
More information about the R-SIG-Mac