Re: [Rd] Windows Laptop specification query

2009-10-01 Thread Keith Satterley
Thanks everyone for advice on this matter. I've been asked to report our conclusion. We have decide to order a duo processor(3.06GHz) Dell Precision 4400 laptop with 8GB memory and 500GB disk. It will be running Vista 64 bit to begin with, moving over to Windows 7 once a little experience is ga

Re: [Rd] Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character' & 'getEncChar' must be called on a CHARSXP

2009-10-01 Thread Simon Urbanek
On Oct 1, 2009, at 6:26 PM, Saptarshi Guha wrote: Hello I could send a .Rdata file but it doesn't load throwing a similar error. That is a strong indicator that you're creating some invalid R objects in your C code, so the problem is likely there, not in R ... The code below is way inco

Re: [Rd] Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character' & 'getEncChar' must be called on a CHARSXP

2009-10-01 Thread Saptarshi Guha
Hello I could send a .Rdata file but it doesn't load throwing a similar error. I can go through the code (below) Now if instead of A0-A3 and B0-B3, i simply create a RAWSEXP and copy the the raw bytes (in kvhold) return this list of two-element lists containing raw bytes and then call lapply(h, fu

Re: [Rd] Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character' & 'getEncChar' must be called on a CHARSXP

2009-10-01 Thread Simon Urbanek
Saptarshi, how did you create those lists? Can you send us the code? If not, can you put up the .RData file? Without a reproducible example this is hard to debug ... Thanks, Simon On Oct 1, 2009, at 14:26 , Saptarshi Guha wrote: Hello, I have list of 600K lists, each sublist a list of t

[Rd] X11 Problems

2009-10-01 Thread Kay Wanous
Hi all, I'm having trouble getting x11 to work with R. (This is on Debian testing.) I installed r-base and r-base-dev, and then r-cran-cairodevice. I also tried installing the Cairo package within R, which appears to work fine. This what I'm seeing: > capabilities() jpeg png

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Jeff Horner
Simon Urbanek wrote: Jeff, On Oct 1, 2009, at 12:37 , Jeff Horner wrote: Jeff Horner wrote: Martin Becker wrote: Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment w

Re: [Rd] Rd.sty question: LaTeX expert needed

2009-10-01 Thread Gábor Csárdi
On Thu, Oct 1, 2009 at 6:50 PM, Duncan Murdoch wrote: [...] > \dQuote{ >  ... >  \preformatted{ >    line 1 >    line 2 >  } > } > [...] Oh, there was a dQuote as well, I must be an idiot for not noticing it. :( Anyway, for me, I will just remove the dQuote and everything will be fine. Sorry, thi

Re: [Rd] Rd.sty question: LaTeX expert needed

2009-10-01 Thread Romain Francois
Hi, I would not claim I'm a latex expert ... In the highlight package, I also use alltt environments the latex renderer of syntax highlighted code, and I ended up masquarading a set of character (#, \, ...) into latex boxes and then use \usebox for these characters. In this file : http://r-

[Rd] Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character' & 'getEncChar' must be called on a CHARSXP

2009-10-01 Thread Saptarshi Guha
Hello, I have list of 600K lists, each sublist a list of two elements, the first a character, the second a list of six named elements, some characters some numrics. LISTA (600K) (:= h) |__ List of two elements |__ Character |__ Named List of 6 elements (characters and numeri

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Duncan Murdoch
On 10/1/2009 12:37 PM, Jeff Horner wrote: Jeff Horner wrote: Martin Becker wrote: Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems to be insu

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Simon Urbanek
Jeff, On Oct 1, 2009, at 12:37 , Jeff Horner wrote: Jeff Horner wrote: Martin Becker wrote: Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems t

[Rd] Rd.sty question: LaTeX expert needed

2009-10-01 Thread Duncan Murdoch
The Rd.sty LaTeX package is used when building the R manuals, and by the LaTeX pages produced from the man pages. I have tracked down some problems Gábor Csárdi was having recently (see "Re: [R] preformatted and '#' in manual pages" in R-help) to a LaTeX problem, and am trying to work out how

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Jeff Horner
Jeff Horner wrote: Martin Becker wrote: Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems to be insufficient. Best wishes, Here's a functio

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Simon Urbanek
On Oct 1, 2009, at 11:33 , Martin Becker wrote: Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems to be insufficient. Rf_NewEnvironment is

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Jeff Horner
Martin Becker wrote: Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems to be insufficient. Best wishes, Here's a function I use in rapache t

[Rd] creating environments in package's C code

2009-10-01 Thread Martin Becker
Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems to be insufficient. Best wishes, Martin -- Dr. Martin Becker Statistics and Econometrics S

Re: [Rd] Dependency 'sma' is not available

2009-10-01 Thread Martin Morgan
zong-pei@imm.ox.ac.uk wrote: > So packages like beadarray and arrayQualityMetrics > cannot be installed. The sma author no longer wishes to maintain this package. The packges beadarray and arrayQualityMetrics are Bioconductor packages that depend on sma indirectly through other packages. The o

[Rd] Dependency 'sma' is not available

2009-10-01 Thread zong-pei . han
So packages like beadarray and arrayQualityMetrics cannot be installed. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Installation problem from R 2.8.x

2009-10-01 Thread zong-pei . han
True, /tmp is noexec and this is generally a good practice for system security. Okay, I'll define TMPDIR=$HOME/tmp for the R package admin on our systems. I think it'd be good if R developers could consider to add something like: If $TMPDIR is not executable, then EITHER "error message" OR