Re: [Rd] Getting ordered factor levels from C

2012-10-24 Thread Mark Lilback
I was banging my head for an hour on this. I just pasted the code into an email and see that I was getting the contents of the SEXP for the factor, not the one returned by getAttrib. Sorry for the waste of time. On Oct 24, 2012, at 4:16 PM, Simon Urbanek wrote: > > On Oct 24, 2012, at 2:14 P

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Simon Urbanek
On Oct 24, 2012, at 4:35 PM, Richard D. Morey wrote: > On 24/10/12 10:07 PM, Simon Urbanek wrote: >> On Oct 24, 2012, at 3:47 PM, Richard D. Morey wrote: >> >>> I'd be fine with the poor man's solution (maybe with tempfile()?) if I can >>> get access to the local file via javascript. But I don'

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Richard D. Morey
On 24/10/12 10:07 PM, Simon Urbanek wrote: On Oct 24, 2012, at 3:47 PM, Richard D. Morey wrote: I'd be fine with the poor man's solution (maybe with tempfile()?) if I can get access to the local file via javascript. But I don't think I can, due to the security limitations of the browser. I ma

Re: [Rd] Getting ordered factor levels from C

2012-10-24 Thread Simon Urbanek
On Oct 24, 2012, at 2:14 PM, Mark Lilback wrote: > I'm working on an R package in C and can't seem to get the same level > information about a factor that the R console displays. > > If I define a factor as: > > lvls <- factor(c('red','blue','blue','green','red'), c('blue','green','red'), > o

[Rd] Shouldn't the \usage section tell the truth?

2012-10-24 Thread Hervé Pagès
Hi, The signature of mget() changed between R-2.15.1 and recent R-devel. In R-2.15.1: > args(mget) function (x, envir, mode = "any", ifnotfound = list(function(x) stop(paste0("value for '", x, "' not found"), call. = FALSE)), inherits = FALSE) NULL In R-devel: > args(mget) f

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Simon Urbanek
On Oct 24, 2012, at 3:47 PM, Richard D. Morey wrote: > > Richard D. Morey > Assistant Professor > Psychometrics and Statistics > Rijksuniversiteit Groningen / University of Groningen > http://drsmorey.org/research/rdmorey > > On 24/10/12 9:23 PM, Simon Urbanek wrote: >> On Oct 24, 2012, at 3:09

[Rd] Getting ordered factor levels from C

2012-10-24 Thread Mark Lilback
I'm working on an R package in C and can't seem to get the same level information about a factor that the R console displays. If I define a factor as: lvls <- factor(c('red','blue','blue','green','red'), c('blue','green','red'), ordered=TRUE) When I get the "levels" attribute in C, I get back

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Richard D. Morey
Richard D. Morey Assistant Professor Psychometrics and Statistics Rijksuniversiteit Groningen / University of Groningen http://drsmorey.org/research/rdmorey On 24/10/12 9:23 PM, Simon Urbanek wrote: On Oct 24, 2012, at 3:09 PM, Richard D. Morey wrote: On 24/10/12 8:53 PM, Simon Urbanek wrote:

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Simon Urbanek
On Oct 24, 2012, at 3:09 PM, Richard D. Morey wrote: > On 24/10/12 8:53 PM, Simon Urbanek wrote: >> On Oct 24, 2012, at 2:13 PM, Richard D. Morey wrote: >> >>> This question involves Rook, but I think the answer will be general enough >>> that it pays to post here. At any rate, I don't know enou

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Richard D. Morey
On 24/10/12 8:53 PM, Simon Urbanek wrote: On Oct 24, 2012, at 2:13 PM, Richard D. Morey wrote: This question involves Rook, but I think the answer will be general enough that it pays to post here. At any rate, I don't know enough to know whether this is a Rook only issue or a general R issue.

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Simon Urbanek
On Oct 24, 2012, at 2:13 PM, Richard D. Morey wrote: > This question involves Rook, but I think the answer will be general enough > that it pays to post here. At any rate, I don't know enough to know whether > this is a Rook only issue or a general R issue. > > Here's what I'd like to do (and

Re: [Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Dan Tenenbaum
On Wed, Oct 24, 2012 at 11:13 AM, Richard D. Morey wrote: > This question involves Rook, but I think the answer will be general enough > that it pays to post here. At any rate, I don't know enough to know whether > this is a Rook only issue or a general R issue. > > Here's what I'd like to do (and

[Rd] concurrent requests (Rook, but I think the question is more general)

2012-10-24 Thread Richard D. Morey
This question involves Rook, but I think the answer will be general enough that it pays to post here. At any rate, I don't know enough to know whether this is a Rook only issue or a general R issue. Here's what I'd like to do (and indeed, have code that should do this): 1. Start R, Rook 2. Sta