Re: [R] Build a package - check error

2011-08-21 Thread Erich Neuwirth
On 8/20/2011 3:37 PM, Uwe Ligges wrote: ?.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) Shouldn't the first line here

Re: [R] Build a package - check error

2011-08-21 Thread Uwe Ligges
On 21.08.2011 11:29, Erich Neuwirth wrote: On 8/20/2011 3:37 PM, Uwe Ligges wrote: ?.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,

Re: [R] Build a package - check error

2011-08-20 Thread Uwe Ligges
On 20.08.2011 00:41, Eduardo Mendes wrote: Hi I have modified the path to dyn.load(paste(Sys.getenv(R_LIBS_USER),/fortran/src/fortran.so,sep=)) 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

Re: [R] Build a package - check error

2011-08-20 Thread Eduardo M. A. M.Mendes
- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Saturday, August 20, 2011 10:38 AM To: Eduardo Mendes Cc: r-help@r-project.org Subject: Re: [R] Build a package - check error On 20.08.2011 00:41, Eduardo Mendes wrote: Hi I have modified the path to dyn.load(paste(Sys.getenv

Re: [R] Build a package - check error

2011-08-20 Thread Eduardo M. A. M.Mendes
me hard. Cheers Ed -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Saturday, August 20, 2011 10:38 AM To: Eduardo Mendes Cc: r-help@r-project.org Subject: Re: [R] Build a package - check error On 20.08.2011 00:41, Eduardo Mendes wrote: Hi I have

[R] Build a package - check error

2011-08-19 Thread Eduardo Mendes
Dear R-users I am slowly migrating my mex files (MATLAB - Fortran and C) to R. To get my own functions available on R section I have decided to learn how to build a R package. I choose a simple example with a few Fortran and R functions (wrapper). The fortran sources are located at src and the

Re: [R] Build a package - check error

2011-08-19 Thread Uwe Ligges
On 19.08.2011 22:53, Eduardo Mendes wrote: Dear R-users I am slowly migrating my mex files (MATLAB - Fortran and C) to R. To get my own functions available on R section I have decided to learn how to build a R package. I choose a simple example with a few Fortran and R functions (wrapper).

Re: [R] Build a package - check error

2011-08-19 Thread Eduardo Mendes
Hi I have modified the path to dyn.load(paste(Sys.getenv(R_LIBS_USER),/fortran/src/fortran.so,sep=)) and the package could installed, loaded and the lines with dyn.load worked. It does not look like a pretty solution but works on my linux (I am not sure if it works on my mac or windows). I am