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!
> 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
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
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
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
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
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
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-
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
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
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
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
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
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
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
[ 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
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
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
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
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
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
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
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.
> 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
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
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
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
27 matches
Mail list logo