[Rd] Improve error message for bad NAMESPACE file?

Seth Falcon sfalcon at fhcrc.org
Wed Feb 8 07:24:11 CET 2006


If a user mis-types a directive in the NAMESPACE file, the error
message is quite cryptic.  If it was possible to report the offending
line/text that would likely give a valuable clue to the user.

Try putting the following line in NAMESPACE

foo("bar")

Then R CMD INSTALL says,

* Installing *source* package 'goodbye' ...
** R
** preparing package for lazy loading
Error in gettext(domain, unlist(args)) : invalid 'domain' value
Execution halted
ERROR: lazy loading failed for package 'goodbye'





platform       powerpc-apple-darwin8.4.0                                     
arch           powerpc                                                       
os             darwin8.4.0                                                   
system         powerpc, darwin8.4.0                                          
status         Under development (unstable)                                  
major          2                                                             
minor          3.0                                                           
year           2006                                                          
month          02                                                            
day            05                                                            
svn rev        37270                                                         
language       R                                                             
version.string Version 2.3.0 Under development (unstable) (2006-02-05 r37270) 



--
 + seth



More information about the R-devel mailing list