Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Gabor Grothendieck
On Tue, May 22, 2012 at 7:50 PM, Simon Urbanek wrote: > > On May 22, 2012, at 7:37 PM, Gabor Grothendieck wrote: > >> On Tue, May 22, 2012 at 6:04 PM, Simon Urbanek >> wrote: >>> >>> On May 22, 2012, at 3:34 PM, Gabor Grothendieck wrote: >>> On Tue, May 22, 2012 at 3:28 PM, Gabor Grothendiec

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Simon Urbanek
On May 22, 2012, at 7:37 PM, Gabor Grothendieck wrote: > On Tue, May 22, 2012 at 6:04 PM, Simon Urbanek > wrote: >> >> On May 22, 2012, at 3:34 PM, Gabor Grothendieck wrote: >> >>> On Tue, May 22, 2012 at 3:28 PM, Gabor Grothendieck >>> wrote: On Tue, May 22, 2012 at 3:05 PM, Henrik Beng

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Gabor Grothendieck
On Tue, May 22, 2012 at 6:04 PM, Simon Urbanek wrote: > > On May 22, 2012, at 3:34 PM, Gabor Grothendieck wrote: > >> On Tue, May 22, 2012 at 3:28 PM, Gabor Grothendieck >> wrote: >>> On Tue, May 22, 2012 at 3:05 PM, Henrik Bengtsson >>> wrote: On Tue, May 22, 2012 at 11:39 AM, Gabor Groth

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Simon Urbanek
I think the most reliable solution is something like system(paste(shQuote(file.path(R.home("bin"),"R")), ...)) it supports spaces in paths and works both on unix and Windows, picking the proper architecture. Cheers, Simon On May 22, 2012, at 3:05 PM, Henrik Bengtsson wrote: > On Tue, May 22

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Simon Urbanek
On May 22, 2012, at 3:34 PM, Gabor Grothendieck wrote: > On Tue, May 22, 2012 at 3:28 PM, Gabor Grothendieck > wrote: >> On Tue, May 22, 2012 at 3:05 PM, Henrik Bengtsson >> wrote: >>> On Tue, May 22, 2012 at 11:39 AM, Gabor Grothendieck >>> wrote: On Tue, May 22, 2012 at 1:34 PM, Henrik

Re: [Rd] Capturing signals from within external libs

2012-05-22 Thread Simon Urbanek
Jeff, On May 22, 2012, at 4:31 PM, Jeffrey Ryan wrote: > I have a continuous loop running in an external library that I am calling > from C (R API). This loop is processing events in real time with the > possibility of significant lag between events. > > When processing an event, I can make use

[Rd] Capturing signals from within external libs

2012-05-22 Thread Jeffrey Ryan
I have a continuous loop running in an external library that I am calling from C (R API). This loop is processing events in real time with the possibility of significant lag between events. When processing an event, I can make use of R_CheckUserInterrupt, but while the external library code is wa

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Gabor Grothendieck
On Tue, May 22, 2012 at 3:28 PM, Gabor Grothendieck wrote: > On Tue, May 22, 2012 at 3:05 PM, Henrik Bengtsson > wrote: >> On Tue, May 22, 2012 at 11:39 AM, Gabor Grothendieck >> wrote: >>> On Tue, May 22, 2012 at 1:34 PM, Henrik Bengtsson >>> wrote: Hi, I'd like to spawn of a

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Gabor Grothendieck
On Tue, May 22, 2012 at 3:05 PM, Henrik Bengtsson wrote: > On Tue, May 22, 2012 at 11:39 AM, Gabor Grothendieck > wrote: >> On Tue, May 22, 2012 at 1:34 PM, Henrik Bengtsson >> wrote: >>> Hi, >>> >>> I'd like to spawn of a new R process from within R using system(), >>> e.g. system("R -f myScri

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Henrik Bengtsson
On Tue, May 22, 2012 at 11:39 AM, Gabor Grothendieck wrote: > On Tue, May 22, 2012 at 1:34 PM, Henrik Bengtsson > wrote: >> Hi, >> >> I'd like to spawn of a new R process from within R using system(), >> e.g. system("R -f myScript.R").  However, just specifying "R" as in >> that example is not g

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Simon Urbanek
On May 22, 2012, at 2:39 PM, Gabor Grothendieck wrote: > On Tue, May 22, 2012 at 1:34 PM, Henrik Bengtsson > wrote: >> Hi, >> >> I'd like to spawn of a new R process from within R using system(), >> e.g. system("R -f myScript.R"). However, just specifying "R" as in >> that example is not gua

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Gabor Grothendieck
On Tue, May 22, 2012 at 1:34 PM, Henrik Bengtsson wrote: > Hi, > > I'd like to spawn of a new R process from within R using system(), > e.g. system("R -f myScript.R").  However, just specifying "R" as in > that example is not guaranteed to work, because "R" may not be on the > OS's search path. >

Re: [Rd] bug in R version 2.15.0 (2012-03-30)?

2012-05-22 Thread Roebuck,Paul L
On 5/19/12 12:22 AM, "Wincent" wrote: > [SNIP] > Also, is URI a typo of URL? No. It is not. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Simon Urbanek
On May 22, 2012, at 1:47 PM, Dan Tenenbaum wrote: > On Tue, May 22, 2012 at 10:34 AM, Henrik Bengtsson > wrote: >> Hi, >> >> I'd like to spawn of a new R process from within R using system(), >> e.g. system("R -f myScript.R"). However, just specifying "R" as in >> that example is not guarante

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Henrik Bengtsson
On Tue, May 22, 2012 at 10:47 AM, Dan Tenenbaum wrote: > On Tue, May 22, 2012 at 10:34 AM, Henrik Bengtsson > wrote: >> Hi, >> >> I'd like to spawn of a new R process from within R using system(), >> e.g. system("R -f myScript.R").  However, just specifying "R" as in >> that example is not guara

Re: [Rd] Best way to locate R executable from within R?

2012-05-22 Thread Dan Tenenbaum
On Tue, May 22, 2012 at 10:34 AM, Henrik Bengtsson wrote: > Hi, > > I'd like to spawn of a new R process from within R using system(), > e.g. system("R -f myScript.R").  However, just specifying "R" as in > that example is not guaranteed to work, because "R" may not be on the > OS's search path.

[Rd] Best way to locate R executable from within R?

2012-05-22 Thread Henrik Bengtsson
Hi, I'd like to spawn of a new R process from within R using system(), e.g. system("R -f myScript.R"). However, just specifying "R" as in that example is not guaranteed to work, because "R" may not be on the OS's search path. What is the best way, from within a running R, to infer the command (

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Ben Bolker
Tim Triche, Jr. gmail.com> writes: > it's already in the VGAM package > > http://www.stat.auckland.ac.nz/~yee/VGAM/ > [various snippage] also see library("sos") findFn("dbetabin*") and http://stackoverflow.com/questions/8065835/ proposing-feature-requests-to-the-r-core-team/8066062#

[Rd] Codoc mismatch for roxygen-documented foo<- functions

2012-05-22 Thread Richard Cotton
I have a roxygen2 documented package with functions for getting and setting an attribute. #' Get or set the foo attribute. #' #' Dummy function! #' #' @param x Object to hold the attribute. #' @param value Value to set the attribute to. #' @return The get function returns the "foo" attribute of \c

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Tim Triche, Jr.
it's already in the VGAM package http://www.stat.auckland.ac.nz/~yee/VGAM/ On Tue, May 22, 2012 at 7:59 AM, Joshua Ulrich wrote: > On Tue, May 22, 2012 at 8:27 AM, Joan Maspons > wrote: > > Hello, > > > > 2012/5/22 Christophe Dutang > > > >> Dear Joan, > >> > > >> If you want to contribute

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Joshua Ulrich
On Tue, May 22, 2012 at 8:27 AM, Joan Maspons wrote: > Hello, > > 2012/5/22 Christophe Dutang > >> Dear Joan, >> >> If you want to contribute to R, you should write a package and submit it >> to CRAN. See http://cran.r-project.org/doc/manuals/R-exts.html >> > > It's necessary to develop a packag

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Joan Maspons
Hello, 2012/5/22 Christophe Dutang > Dear Joan, > > Are you aware of this page > http://cran.r-project.org/web/views/Distributions.html ? > Yes, I remember https://stat.ethz.ch/pipermail/r-devel/2012-March/063552.html > If you want to contribute to R, you should write a package and submit it

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Christophe Dutang
Dear Joan, Are you aware of this page http://cran.r-project.org/web/views/Distributions.html ? If you want to contribute to R, you should write a package and submit it to CRAN. See http://cran.r-project.org/doc/manuals/R-exts.html Regards Christophe -- Christophe Dutang Ph.D. student at ISFA

[Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Joan Maspons
Hello, I implemented the Beta binomial distribution following the patterns of the binomial distribution code and inspired by JAGS' code [1]. I have studied the code carefully but it's my first run in the R internals. Can somebody review the code and if everything it's ok commit to the repository?