[Rd] Package installation

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jun 10 18:32:39 CEST 2004

Toralf Kirsten wrote:

> Hi all,
> I'm very new to R.
> I have installed R 1.9.0 on Linux (Fedora).
> Now I got an self-made package comprising R functions as well as C-Code 
> which are used in several R functions.
> I installed the package without any error (see install log below).
> Then, I checked in /usr/lib/R/library if the package izbi exists and it 
> exists.
> But whenever I try to load the library on the command line I got the 
> following error.
>  > library(izbi)
> Error in .find.package(package, lib.loc, verbose = verbose) :
>         Object "izbi" not found
> Error in library(izbi) : .First.lib failed

Hmm. What is your actual library.dynam() call in .First.lib()?

Do you have read access to all the files in /usr/lib/R/library/izbi (in 
particular to ..../izbi/lib/izbi.so - and does it exist)?

Running R CMD check might give additional hints ...

Uwe Ligges

> Unfortunately, the whole package is written and tested under R 1.8.0 on 
> Linux (RedHat 9.0) and there are no problems loading and working with 
> the library. To have a more cross check I installed the same package on 
> my laptop using SUSE Linux with R 1.8.0. Ther are also no problems with 
> loading and working with the package.
> Does anybody knows what I can do?
> Many thanks, Toralf
> PS: If you need more info please let me know.
> ---- install log ---------
> /u/geware/programs/analysis/R-packages (root) ->R CMD INSTALL izbi
> * Installing *source* package 'izbi' ...
> ** libs
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c aggreg.c -o 
> aggreg.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c grptest.c -o 
> grptest.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c mathutils.c -o 
> mathutils.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c uvartest.c -o 
> uvartest.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c wyclust.c -o 
> wyclust.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c wygrps.c -o 
> wygrps.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c wyr.c -o wyr.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c wyutils.c -o 
> wyutils.o
> gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES 
> -mieee-fp  -fPIC  -O2 -g -pipe -march=i386 -mcpu=i686 -c wyuvar.c -o 
> wyuvar.o
> gcc -shared -L/usr/local/lib -o izbi.so aggreg.o grptest.o mathutils.o 
> uvartest.o wyclust.o wygrps.o wyr.o wyutils.o wyuvar.o
> ** R
> ** data
> ** help
>  >>> Building/Updating help pages for package 'izbi'
>      Formats: text html latex example
>   COLS                              text    html    latex
>   ROWS                              text    html    latex
>   bin                               text    html    latex   example
>   cor.total                         text    html    latex   example
>   data.mat                          text    html    latex   example
>   fac                               text    html    latex   example
>   ubeta                             text    html    latex   example
>   umbeta                            text    html    latex   example
>   wy.clust                          text    html    latex   example
>   wy.grps                           text    html    latex   example
>   wy.uvar                           text    html    latex   example
> * DONE (izbi)
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

More information about the R-devel mailing list