Re: [Rd] R CMD check error (interfacing to C API of other pkg): Solved

2017-02-10 Thread Therneau, Terry M., Ph.D.
Martin, That was it- I forgot the "LinkingTo" line. I had read that section of the manual twice in the last 2 days, yet somehow missed that critical line both times. And even worse, the final sentence of said section references my own coxme package as an example of how to do it correctly!

Re: [Rd] R CMD check error (interfacing to C API of other pkg)

2017-02-10 Thread Martin Maechler
> Therneau, Terry M , Ph D > on Thu, 9 Feb 2017 12:56:17 -0600 writes: > Martyn, > No, that didn't work. > One other thing in the mix (which I don't think is the issue) is that I call one of the > C-entry points of expm. So the DESCRIPTION file imports expm, the NA

Re: [Rd] R CMD check error

2017-02-09 Thread Therneau, Terry M., Ph.D.
Martyn, No, that didn't work. One other thing in the mix (which I don't think is the issue) is that I call one of the C-entry points of expm. So the DESCRIPTION file imports expm, the NAMESPACE file imports expm, and the init.c file is #include "R.h" #include "R_ext/Rdynload.h" /* Interf

Re: [Rd] R CMD check error

2017-02-09 Thread Martyn Plummer
On Thu, 2017-02-09 at 09:52 -0600, Therneau, Terry M., Ph.D. wrote: > Martin, >   I am aware of --vanilla; I use it myself for some testing.  In this case > R_LIBS_USER was  > set externally (part of my login) and does not involve any of the R scripts.   > That means  > it is inherited by any subp

Re: [Rd] R CMD check error

2017-02-09 Thread Therneau, Terry M., Ph.D.
Martin, I am aware of --vanilla; I use it myself for some testing. In this case R_LIBS_USER was set externally (part of my login) and does not involve any of the R scripts. That means it is inherited by any subprocess. For example: tmt1495% R --vanilla --no-environ R version 3.3.1 (2016-0

Re: [Rd] R CMD check error

2017-02-09 Thread Martyn Plummer
On Wed, 2017-02-08 at 15:51 -0600, Therneau, Terry M., Ph.D. wrote: > I have a local library which depends on the expm library.  The expm library > is loaded into  > my personal space and I have the environment variable R_LIBS_USER set > appropriately.  The  > command "library(expm)" works just f

[Rd] R CMD check error

2017-02-08 Thread Therneau, Terry M., Ph.D.
I have a local library which depends on the expm library. The expm library is loaded into my personal space and I have the environment variable R_LIBS_USER set appropriately. The command "library(expm)" works just fine from the command line, and in fact the package works if I do the source() a

[Rd] R CMD check error in v2.12.0

2010-06-16 Thread Brandon Whitcher
I have received the following error for my package oro.nifti under "CRAN checks" for r-devel-linux-ix86; i.e., http://www.r-project.org/nosvn/R.check/r-devel-linux-ix86/oro.nifti-00check.html - using R version 2.12.0 Under development (unstable) (2010-06-12 r52259) - using platform: i686-

Re: [Rd] R CMD check Error after R CMD build for R-2.11.0

2010-04-30 Thread Hamid Khalili
I'm really sorry that I had to disturb you (for nothing) because everything looks fine now ( why ??). After I build again the package with search() in the "Rsq.2.array" examples, I didn't get any Error. The only things that I changed it's the directory where is build the package. The package dir

Re: [Rd] R CMD check Error after R CMD build for R-2.11.0

2010-04-29 Thread Uwe Ligges
On 29.04.2010 17:39, Hamid Khalili wrote: Dear UseR, I get an error when I run "R CMD check" on my .tar.gz file package, and I don't understand why since I don't obtain any error with "R CMD check" on the package directory. Do you have any idea ? $ sudo ./R-2.11.0/bin/R CMD check eqtl_1.1.ta

[Rd] R CMD check Error after R CMD build for R-2.11.0

2010-04-29 Thread Hamid Khalili
Dear UseR, I get an error when I run "R CMD check" on my .tar.gz file package, and I don't understand why since I don't obtain any error with "R CMD check" on the package directory. Do you have any idea ? $ sudo ./R-2.11.0/bin/R CMD check eqtl_1.1.tar.gz and $ sudo ./R-2.11.0/bin/R CMD --check

Re: [Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread pleydell
You'll need something like : PKG_LIBS=-lgsl -lgslcblas in your Makevars. This is from package gsl (on CRAN). Of course! That makes sense 'cause I was already compiling using MAKEFLAGS="CFLAGS=-g -O0" R CMD SHLIB sharka.c -lgsl -lgslcblas and including the above line in Makevars has done the

Re: [Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread Romain Francois
Hi, You'll need something like : PKG_LIBS=-lgsl -lgslcblas in your Makevars. This is from package gsl (on CRAN). Or maybe you can just depend on the gsl package and let it worry about finding where gsl is, etc ... Romain On 01/22/2010 10:59 AM, pleyd...@supagro.inra.fr wrote: I have bee

Re: [Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread Uwe Ligges
Maybe you want to check out the R package gsl and take a look how it is solved there using a configure script that looks up the gsl installation. Best wishes, Uwe On 22.01.2010 10:59, pleyd...@supagro.inra.fr wrote: I have been working on an R package that calls C code using .C(). I recently

[Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread pleydell
I have been working on an R package that calls C code using .C(). I recently started including some functions from the GNU Scientific Library in my code. The code runs fine on my machine when not wrapped in the package. But I get the following error from "R CMD check" * checking whether the packag

Re: [Rd] R CMD check: Error in .C

2009-10-27 Thread Friedrich Leisch
[ Note that this discussion really belongs to r-help, not r-devel, but a nyway. > On Tue, 27 Oct 2009 09:02:12 +1300, > Etienne Laliberté (EL) wrote: > Many thanks Mathieu, following your answer I did a bit more focused > research and found out that because "mypackage" had a NAMESPAC

Re: [Rd] R CMD check: Error in .C

2009-10-27 Thread Etienne Laliberté
Many thanks Mathieu, following your answer I did a bit more focused research and found out that because "mypackage" had a NAMESPACE, I had to create the following zzz.R file instead: .onLoad <-function (lib, pkg) { library.dynam("mypackage", pkg, lib) } I then had a look in "Writing R extensi

Re: [Rd] R CMD check: Error in .C

2009-10-26 Thread Mathieu Ribatet
Dear Etienne, You probably want to create a zzz.R file in the /mypkg/R/ folder which is just .First.lib <- function(lib, pkg){ library.dynam("MyPkgName", package = pkg, lib.loc = lib) return(invisible(0)) } This would ensure that your shared library will be lo

Re: [Rd] R CMD check: Error in .C

2009-10-26 Thread Duncan Murdoch
Etienne Laliberté wrote: Function/file names are hypothetical. Say I have written myfunction.R, which calls myfunction.c via .C("myfunction", ...). I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c in the terminal. Then, in the R console: dyn.load("myfunction.so") source("myf

[Rd] R CMD check: Error in .C

2009-10-26 Thread Etienne Laliberté
Function/file names are hypothetical. Say I have written myfunction.R, which calls myfunction.c via .C("myfunction", ...). I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c in the terminal. Then, in the R console: dyn.load("myfunction.so") source("myfunction.R") test <- myfunct

Re: [Rd] R CMD check error, Readitem unknown type 203

2007-12-12 Thread Prof Brian Ripley
On Wed, 12 Dec 2007, Abhishek Tripathi wrote: > > Hi, > > Apologies if it has already been posted. I searched the archives and > couldn't find the answer to my problem. > > I am building a R package and while checking it with R CMD check, I get > the following error, > > * checking whether packag

Re: [Rd] R CMD check error, Readitem unknown type 203

2007-12-12 Thread Duncan Murdoch
On 12/12/2007 4:55 AM, Abhishek Tripathi wrote: > Hi, > > Apologies if it has already been posted. I searched the archives and > couldn't find the answer to my problem. > > I am building a R package and while checking it with R CMD check, I get > the following error, > > * checking whether p

[Rd] R CMD check error, Readitem unknown type 203

2007-12-12 Thread Abhishek Tripathi
Hi, Apologies if it has already been posted. I searched the archives and couldn't find the answer to my problem. I am building a R package and while checking it with R CMD check, I get the following error, * checking whether package 'drCCA' can be installed ... ERROR Installation failed.

Re: [Rd] R CMD check: Error in function (env) : could not find function "finalize"

2007-08-29 Thread Prof Brian Ripley
> To the best of my understanding, when R > CMD check runs examples, it will load *all* suggested packages, and > when done, detach them. When the garbage collector later runs and Not so. R CMD check just runs the examples in a normal session after loading the package being tested. Examples ma

Re: [Rd] R CMD check: Error in function (env) : could not find function "finalize"

2007-08-29 Thread Henrik Bengtsson
Hi, thanks Seth and others (I've got some offline replies); all feedback has been useful indeed. The short story is that as the author of R.oo I am actually the bad guy here (but not for long since I'm soon committing a fix for R.oo). REPRODUCIBLE EXAMPLE #1: % R --vanilla > library(R.oo) R.oo v1

Re: [Rd] R CMD check: Error in function (env) : could not find function "finalize"

2007-08-28 Thread Seth Falcon
Hi Henrik, "Henrik Bengtsson" <[EMAIL PROTECTED]> writes: > Hi, > > does someone else get this error message: > > Error in function (env) : could not find function "finalize"? > > I get an error when running examples in R CMD check (v2.6.0; session > info below): [snip] > The error occurs in R C

[Rd] R CMD check: Error in function (env) : could not find function "finalize"

2007-08-28 Thread Henrik Bengtsson
Hi, does someone else get this error message: Error in function (env) : could not find function "finalize"? I get an error when running examples in R CMD check (v2.6.0; session info below): > ### * invertMap > > flush(stderr()); flush(stdout()) > ### Name: invertMap > ### Title: Inverts a read