Skip to content
Prev 269163 / 398502 Next

Build a package - check error

Hi there

Many thanks.

Just to be clear I did read the manual (section 5 and all) and  have even
looked at the package expm which has a src dir with codes in fortran and C
to understand what it is going on.  

I have also read the help for .First.lib.  

Cheers

Ed


-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de] 
Sent: Saturday, August 20, 2011 10:38 AM
To: Eduardo Mendes
Cc: r-help at r-project.org
Subject: Re: [R] Build a package - check error
On 20.08.2011 00:41, Eduardo Mendes wrote:
Hmmm, looks like you never took a look into the relevant manual "Writing R
Extensions" nor in the help files I cited below.

?.First.lib has an example:

## Suppose a package needs to call a DLL named 'fooEXT', ## where 'EXT' is
the system-specific extension.  Then you should use .First.lib <-
function(lib, pkg)
   library.dynam("foo", pkg, lib)


You cannot know that the package is in Sys.getenv("R_LIBS_USER")

Note also that the .so file won't be in the path ..../src/... but in
.../lib/... once you install the package in the recommended way using R CMD
INSTALL.

Really, please do read manual!!!
worked.
So again time to read the manual and the help pages.

Best,
Uwe Ligges