The Art of R Programming

(WallPaper) #1
Well, that seemed to work, in the sense that R did install the package,
but R also noted that it had a problem with the threads library on our
machines. Sure enough, when I tried to loadRmpi, I got a runtime error,
saying that a certain threads function wasn’t there.
I knew that our threads library was fine, so I went into theconfigurefile
and commented out two lines:

# if test $ac_cv_lib_pthread_main = yes; then
MPI_LIBS="$MPI_LIBS -lpthread"
#fi

In other words, I forced it to use what I knew (or was fairly sure) would
work. I then reranR CMD INSTALL, and the package loaded without any
problems.

B.4 Listing the Functions in a Package............................................


You can get a list of functions in a package by callinglibrary()with thehelp
argument. For instance, for help on themvtnormpackage, type one of the
following:




  • library(help=mvtnorm)






  • help(package=mvtnorm)





358 Appendix B

Free download pdf