[R-SIG-Mac] Fwd: Re: [R] Package seems to be present but library don't find it

Duncan Murdoch murdoch.duncan at gmail.com
Tue Apr 3 18:50:52 CEST 2012


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



Duncan Murdoch

-------- Original Message --------
Subject: 	Re: [R] Package seems to be present but library don't find it
Date: 	Tue, 03 Apr 2012 18:25:36 +0200
From: 	Marc Girondot <marc_grt at yahoo.fr>
To: 	Duncan Murdoch <murdoch.duncan at gmail.com>
CC: 	r-help at r-project.org



Indeed I get this error message when I install the library using R CMD 
INSTALL but not within the GUI (in MacOsX). Good to know that R CMD 
INSTALL is more verbose and permits to track bug.

Thanks a lot.

It works fine now.

Marc

Le 03/04/12 16:03, Duncan Murdoch a écrit :
> 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 


-- 
__________________________________________________________
Marc Girondot, Pr

Laboratoire Ecologie, Systématique et Evolution
Equipe de Conservation des Populations et des Communautés
CNRS, AgroParisTech et Université Paris-Sud 11 , UMR 8079
Bâtiment 362
91405 Orsay Cedex, France

Tel:  33 1 (0)1.69.15.72.30   Fax: 33 1 (0)1.69.15.73.53
e-mail:marc.girondot at u-psud.fr
Web:http://www.ese.u-psud.fr/epc/conservation/Marc.html
Skype: girondot



More information about the R-SIG-Mac mailing list