[R] Possible bug when using encomptest

2012-06-19 Thread Cormac Long
onal error checking is added into encomptest(): check if provided models are nested and called a halt via stop() if they are. - -----

Re: [R] A question about using getSrcDirectory() with R/Rscript

2011-08-19 Thread Cormac Long
ormac. 2011/8/18 Uwe Ligges : > Works for me in R-patched: > > I guess your problem is that you have to set the options() before > source()ing. > > Best, > Uwe Ligges > > > > > On 17.08.2011 10:31, Cormac Long wrote: >> >> Good morning R-help

[R] A question about using getSrcDirectory() with R/Rscript

2011-08-17 Thread Cormac Long
Good morning R-help, I have an idiot question: I would like to use getSrcDirectory() and friends to allow me to identify where an R file has been called from when invoked using Rscript. If I understand the documentation correctly, the following example should work: In file test.R: options(keep

Re: [R] problem (and solution) to rle on vector with NA values

2011-06-23 Thread Cormac Long
@ugent.be > link: http://biomath.ugent.be > wink: A1.056, Coupure Links 653, 9000 Gent > ring: 09/264.59.36 > > -- Do Not Disapprove > > > > >> -Original Message----- >> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On

[R] problem (and solution) to rle on vector with NA values

2011-06-23 Thread Cormac Long
l)]<-NA     if(IS_LOGIC)     x<-as.logical(x)     END NEW SECTION PART 2     structure(list(lengths = diff(c(0L, i)), values = x[i]),     class = "rle") } Conclusion: I think that the proposed code modification is an improvement on the existing i

[R] issue with odfWeave running on Windows XP; question about installing packages under Linux

2011-05-13 Thread Cormac Long
o install? By default, Windows XP boxes do not have these utilities installed (installing Rtools does away with this problem). Many thanks in advance, Dr. Cormac Long. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Attempting to access an R list from within C code

2011-04-27 Thread Cormac Long
g R2.13.0): void showList(SEXP *obj, int *size) { SEXP *locObj=obj; int i; for(i=0;i<*size;i++){ Rprintf("Entry is %d: value is %f",i,REAL(*locObj)[1]); *locObj=CDR(*locObj); } return; } Any help is greatfully appreciated! Best wishes, Dr. Cormac

Re: [R] function help?

2010-09-21 Thread Cormac Long
- To the rest of the R community: I realise that this is not "how things should be done" - by the time I'd realised that I should be writing a package I'd already created a whole slew of tools! That'll teach me not to read the ma

[R] A question on modelling binary response data using factors

2010-09-15 Thread Cormac Long
re than a week now and am absolutely sure there is something simple that I am doing wrong! Yours sincerely, Cormac Long. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

[R] issue with using rm: cannot generate on-the-fly list

2009-12-17 Thread Cormac Long
n-up within a function for design purposes. The full project is spread over several files and I am trying to keep the main loop as simple as possible. Sincerly, Cormac Long. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list ht