[R] Missing functions in package e1071(Win*)

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Aug 29 11:24:35 CEST 2001


Agustin Lobo wrote:
> 
> Hi!
> 
> After unziping the CRAN file e1071.zip
> on my Win95 library directory, I start R and
> type
> 
> >library(e1071)
> 
> After that, help commands of the e1071
> functions work (i.e., help(read.pnm), BUT
> some functions themselves are not available:
> 
> > read.pnm
> Error: Object "read.pnm" not found

If you have read the readme of e1071, you would have found:

"The functions for reading and writing PNM images need the netpbm
libraries and header files (which can be downloaded from
http://netpbm.sourceforge.net).  If netpbm is not found at INSTALL
time, support wir reading and writing PNM images is disabled."

This seems to be the case in your installation.


> I've looked at the file library/R/e1071 with
> an ascii editor and it seems like the functions
> there are not all the ones listed in the help for
> e1071. Indeed, after listing the available functions:
> 
> > search()
> [1] ".GlobalEnv"    "package:e1071" "package:ctest" "Autoloads"
> [5] "package:base"
> 
> > objects(pos=2)
> 
> and comparing to the ones listed in library/e1071/help/AnIndex,
> I've found that the missing ones are:
> 
> channel.pnm
> Mvnorm
> plot.clobj
> pnm
> read.pnm
> write.pgm

Some are functions and (as expected) "missing".
Some are help topics (and not functions!) with aliases to other
functions. E.g. Mvnorm is not a function. In Mvnorm.Rd of the package
sources you will find:

 \name{Mvnorm}
 \alias{dmvnorm}
 \alias{rmvnorm}

 
> As it is often the case, the missing ones are the ones I need...
> 
> I've checked that this is not a downloading problem,
> the CRAN file:
> 
> http://cran.r-project.org/bin/windows/contrib/e1071.zip
> 
> is identical to the one I have on my disk.
> 
> Maybe a problem at compiling for win* and/or packing the e1071.zip file?
> 
> Any solution?


a) Try to compile yourself the netpbm libraries and after that the e1071
package. But I think that won't be very easy.

b) Change to another OS. It works fine on many Linux/Unix/Solaris
systems, which often have the required libraries and compiler installed.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list