[R] Package seems to be present but library don't find it
Duncan Murdoch
murdoch.duncan at gmail.com
Tue Apr 3 16:03:28 CEST 2012
On 03/04/2012 9:50 AM, Marc Girondot wrote:
> In case someone has the competence to check, the file is here:
>
> setwd("~")
>
> download.file("http://www.ese.u-psud.fr/epc/conservation/r-scripts/HelloWorld_1.0.tar.gz",
> "HelloWorld_1.0.tar.gz")
>
> install.packages("HelloWorld_1.0.tar.gz", repos = NULL)
The problem is that you try to export the name HelloWorld in your
NAMESPACE file, but you don't have an object of that name. You should
export showHello instead.
Not sure why you didn't see the error message I got:
$ R CMD INSTALL HelloWorld_1.0.tar.gz
* installing to library 'F:/cygwin/home/murdoch/R/win-library/2.15'
* installing *source* package 'HelloWorld' ...
** R
** preparing package for lazy loading
** help
Warning:
C:/temp/RtmpimSWuh/R.INSTALLe801c296e9/HelloWorld/man/HelloWorld-packag
e.Rd:32: All text must be in a section
Warning:
C:/temp/RtmpimSWuh/R.INSTALLe801c296e9/HelloWorld/man/HelloWorld-packag
e.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:/cygwin/home/murdoch/R/win-library/2.15/HelloWorld'
Duncan Murdoch
More information about the R-help
mailing list