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 -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra
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 *** -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra
> Date: Wed, 08 Dec 2004 09:33:22 -0400 > From: Kjetil Brinchmann Halvorsen <kjetil at acelerate.com> > > 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. >Check what is in your data directory. Does something in there use (implicitly) na.omit? I have seen something like this (since 2.0.0) where a .R file in the data/ directory used a function within the package, but that function was not 'available' at the "installing indices" phase of the check/build. Ray Brownrigg