Re: [Rd] Objects created by more than one data call?

2013-05-21 Thread William Dunlap
If you look at data(package="Ecat")$results[,"Item"] you will see the items "Hstarts", "Hstarts (Intratesm)", and "Hstarts (Intratesq)" which I think means that the dataset Hstarts is found in 3 .rda files, "Hstarts.rda", "Intratesq.rda", and "Intratesm.rda". There are duplicate, modulo (file

Re: [Rd] Objects created by more than one data call?

2013-05-21 Thread Spencer Graves
On 5/21/2013 9:03 AM, Prof Brian Ripley wrote: On 21/05/2013 16:51, Spencer Graves wrote: On 5/21/2013 7:47 AM, Prof Brian Ripley wrote: On 21/05/2013 15:28, Spencer Graves wrote: On 5/20/2013 10:10 PM, Prof Brian Ripley wrote: On 21/05/2013 00:12, Spencer Graves wrote: Hello, All:

Re: [Rd] making makepredictcall() work

2013-05-21 Thread Prof Brian Ripley
On 21/05/2013 12:19, D. Rizopoulos wrote: Dear All, I'm interested in creating a function similar to ns() from package splines that can be passed in a model formula. The idea is to produce "safe" predictions from a model using this function. As I have seen, to do this I need to use makepredictca

Re: [Rd] Objects created by more than one data call?

2013-05-21 Thread Prof Brian Ripley
On 21/05/2013 16:51, Spencer Graves wrote: On 5/21/2013 7:47 AM, Prof Brian Ripley wrote: On 21/05/2013 15:28, Spencer Graves wrote: On 5/20/2013 10:10 PM, Prof Brian Ripley wrote: On 21/05/2013 00:12, Spencer Graves wrote: Hello, All: If I use LazyData with the Ecdat package on R-Fo

Re: [Rd] Objects created by more than one data call?

2013-05-21 Thread Spencer Graves
On 5/21/2013 7:47 AM, Prof Brian Ripley wrote: On 21/05/2013 15:28, Spencer Graves wrote: On 5/20/2013 10:10 PM, Prof Brian Ripley wrote: On 21/05/2013 00:12, Spencer Graves wrote: Hello, All: If I use LazyData with the Ecdat package on R-Forge, "R CMD check" reports "no visible bindi

Re: [Rd] Objects created by more than one data call?

2013-05-21 Thread Prof Brian Ripley
On 21/05/2013 15:28, Spencer Graves wrote: On 5/20/2013 10:10 PM, Prof Brian Ripley wrote: On 21/05/2013 00:12, Spencer Graves wrote: Hello, All: If I use LazyData with the Ecdat package on R-Forge, "R CMD check" reports "no visible binding for global variable 'nonEnglishNames'", where

Re: [Rd] Objects created by more than one data call?

2013-05-21 Thread Spencer Graves
On 5/20/2013 10:10 PM, Prof Brian Ripley wrote: On 21/05/2013 00:12, Spencer Graves wrote: Hello, All: If I use LazyData with the Ecdat package on R-Forge, "R CMD check" reports "no visible binding for global variable 'nonEnglishNames'", where 'nonEnglishNames' is a dataset in Ecdat use

Re: [Rd] Inconsistent results from .C()

2013-05-21 Thread Robin Evans
Sure! C code is below if it helps. The gist is that the function oneMargin forms two matrices M and C, mostly by repeatedly taking Kronecker products. Robin void kronecker (int *A, int *B, int *dima, int *dimb, int *C) { int k = 0; int i1,i2,j1,j2; for (i2 = 0; i2 < dima[1]; i2++) {

Re: [Rd] Inconsistent results from .C()

2013-05-21 Thread R. Michael Weylandt
It might also help if you can point us to the C code to help debug. MW On Tue, May 21, 2013 at 10:53 AM, Robin Evans wrote: > I should add to this that I'm running on Scientific Linux 6. I later > noticed that the bug only seems to occur when I run the code from Rstudio, > and not if I use the

Re: [Rd] R CMD check: unknown option ?--outdir==RCHECK?

2013-05-21 Thread Renaud Gaujoux
Oh... I read too quickly your previous post, which actually gives me some hope on explaining why some R-forge checks might be broken. Great thanks! :) On 21 May 2013 15:54, Duncan Murdoch wrote: > On 21/05/2013 8:13 AM, Renaud Gaujoux wrote: > >> Hi, >> >> I believe this is kind of a long stand

Re: [Rd] R CMD check: unknown option ?--outdir==RCHECK?

2013-05-21 Thread Duncan Murdoch
On 21/05/2013 8:13 AM, Renaud Gaujoux wrote: Hi, I believe this is kind of a long standing bug though. In R-3.0.1, but this also happened in previous versions, the long version '--outdir' is not recognised: For `R CMD check --outdir=mydir pkg_0.1.tar.gz` we get: Warning: unknown option ‘--ou

Re: [Rd] R CMD check: unknown option ?--outdir==RCHECK?

2013-05-21 Thread Renaud Gaujoux
Hi, I believe this is kind of a long standing bug though. In R-3.0.1, but this also happened in previous versions, the long version '--outdir' is not recognised: For `R CMD check --outdir=mydir pkg_0.1.tar.gz` we get: Warning: unknown option ‘--outdir=mydir’ But with `R CMD check -o mydir pkg_0.

[Rd] making makepredictcall() work

2013-05-21 Thread D. Rizopoulos
Dear All, I'm interested in creating a function similar to ns() from package splines that can be passed in a model formula. The idea is to produce "safe" predictions from a model using this function. As I have seen, to do this I need to use makepredictcall(). Consider the following toy example:

[Rd] Inconsistent results from .C()

2013-05-21 Thread Robin Evans
Hello, I've run into a problem which is both maddening and rather hard to replicate, therefore I wondered if someone might know of a plausible explanation for it. I couldn't find anything in the archives, though maybe I'm searching for the wrong thing. I'm calling some C code using .C, and get t

Re: [Rd] Inconsistent results from .C()

2013-05-21 Thread Robin Evans
I should add to this that I'm running on Scientific Linux 6. I later noticed that the bug only seems to occur when I run the code from Rstudio, and not if I use the terminal directly, so this may be the key to the problem. Robin On 20 May 2013 16:12, Robin Evans wrote: > Hello, > > I've run in

Re: [Rd] locking down R

2013-05-21 Thread Davide Rambaldi
Is like comma 22: - They hire you to use a console and you will be fired if you use a console! I am italian, and for us, this kind of contradictions are normal ... - Davide Rambaldi, PhD. - IE