[R] Strange error from R CMD INSTALL

Gabor Grothendieck ggrothendieck at myway.com
Wed Dec 8 18:48:22 CET 2004


Kjetil Brinchmann Halvorsen <kjetil <at> acelerate.com> writes:

: 
: Kjetil Brinchmann Halvorsen wrote:
: 
: > I am trying to install a local package and get this unexpected
: > error:
: >
: > ---------- Making package UMSA ------------
: >  adding build stamp to DESCRIPTION
: >  installing R files
: >  installing data files
: >  installing man source files
: >  installing indices
: > Error: couldn't find function "na.omit"
: > Execution halted
: >
: > na.omit of course is in package stats, and that is listed in the
: > Depends field in the DESCRIPTION file.
: >
: > What is happening?
: >
: > (Windows XP with all development tools installed)
: >
: > Kjetil
: >
: Replying to myself with more information: 
: 
: (running from Xemacs shell)
: Using a package with NO explicit calls to the function na.omit, (but 
: with some handling of NA's
: with other means):
: 
: C:\R\rw2001\src\gnuwin32>Rcmd INSTALL ../library/Drogas
: Rcmd INSTALL ../library/Drogas
: 
: 
: ---------- Making package Drogas ------------
:   adding build stamp to DESCRIPTION
:   no R files in this package
:   installing data files
:   installing man source files
:   installing indices
: Error: couldn't find function "na.omit"
: Execution halted
: make[2]: *** [indices] Error 1
: make[1]: *** [all] Error 2
: make: *** [pkg-Drogas] Error 2
: *** Installation of Drogas failed ***
: 

Don't know the answer but note that in your second
run it could not find any R files at all so there
is some change between the two runs.

I have found in the past that sometimes that the error 
messages in building packages are completely wrong -- 
there is a real error, its just that the error message 
does not describe it.  What I have done in the case that
I am completely lost is to remove half my package rebuild
and continuing in that way via binary search narrow it down.




More information about the R-help mailing list