[Rd] Thread synchronization [Was: Interrupting C++ code execution]

2011-04-26 Thread Simon Urbanek
Sean, On Apr 26, 2011, at 5:06 PM, Sean Robert McGuffee wrote: > I've been thinking about how to handle c++ threads that were started via Rcpp > calls to some of my c++ libraries from R. My main obstacle is trying to make > sure that users don't try to process files that are being generated by

Re: [Rd] Wish R Core had a standard format (or generic function) for "newdata" objects

2011-04-26 Thread Duncan Murdoch
On 26/04/2011 11:13 AM, Paul Johnson wrote: Is anybody working on a way to standardize the creation of "newdata" objects for predict methods? They're generally just dataframes. Use the data.frame() function. When using predict, I find it difficult/tedious to create newdata data frames when t

[Rd] grid stringHeight

2011-04-26 Thread baptiste auguie
Dear all, I'm puzzled by the behavior of stringHeight in the grid package. Consider the following test, library(grid) test <- function(lab="dog", ...){ g1 <- textGrob(lab) g2 <- rectGrob(height=grobHeight(g1), width=grobWidth(g1)) gg <- gTree(children=gList(g1,g2), ...) print(c("height:

Re: [Rd] Interrupting C++ code execution

2011-04-26 Thread Sean Robert McGuffee
Hi, I've been thinking about how to handle c++ threads that were started via Rcpp calls to some of my c++ libraries from R. My main obstacle is trying to make sure that users don't try to process files that are being generated by a thread before the thread finishes. One thing I am considering is ha

Re: [Rd] help.request() for packages?

2011-04-26 Thread Jeffrey Ryan
For what it is worth, I too would like to see something regarding a "Support" field in the description. One issue with a single maintainer email is that it does make it difficult to assure that questions get properly routed/answered given projects that have multiple contributors or an active commu

[Rd] help.request() for packages?

2011-04-26 Thread Matthew Dowle
Hi, Have I missed something, or misunderstood? The r-help posting guide asks users to contact the package maintainer : "If the question relates to a contributed package, e.g., one downloaded from CRAN, try contacting the package maintainer first. [snip] ONLY [only is bold font] send such ques

Re: [Rd] How to create vignette.pdf for R-2.13.0?

2011-04-26 Thread cstrato
Dear Duncan, dear Uwe, Just now I have re-run everything, and today xps.Rnw can be converted to a vignette w/o any problems using: a, buildVignettes("xps", dir="/Volumes/CoreData/CRAN/xps", quiet=F) b, R CMD Sweave xps.Rnw In both cases the vignette xps.pdf is created (maybe my Mac did not lik

[Rd] Wish R Core had a standard format (or generic function) for "newdata" objects

2011-04-26 Thread Paul Johnson
Is anybody working on a way to standardize the creation of "newdata" objects for predict methods? When using predict, I find it difficult/tedious to create newdata data frames when there are many variables. It is necessary to set all variables at the mean/mode/median, and then for some variables o

Re: [Rd] Interrupting C++ code execution

2011-04-26 Thread Simon Urbanek
On Apr 26, 2011, at 7:30 AM, schattenpfla...@arcor.de wrote: > I have tested the solutions suggested by Simon and Thomas on a Linux machine. > These are my findings: > >> On Windows you can look at the variable "UserBreak", available from >> Rembedded.h. Outside of Windows, you can look at R_in

Re: [Rd] Interrupting C++ code execution

2011-04-26 Thread schattenpflanze
I have tested the solutions suggested by Simon and Thomas on a Linux machine. These are my findings: On Windows you can look at the variable "UserBreak", available from Rembedded.h. Outside of Windows, you can look at R_interrupts_pending, available from R_ext/GraphicsDevice.h. R_ext/GraphicsDe