Re: [Rd] Multithreaded code in .Call interface

2012-10-15 Thread Rob Anderson
Thanks for the reply. Rob On Sat, Oct 13, 2012 at 1:57 AM, Prof Brian Ripley wrote: > On 13/10/2012 08:09, Rob Anderson wrote: > >> Hi, >> >> I was wondering if it is safe to call R functions and/or R BLAS functions >> from within multithreaded C/C++ code(.Call

[Rd] Multithreaded code in .Call interface

2012-10-13 Thread Rob Anderson
Hi, I was wondering if it is safe to call R functions and/or R BLAS functions from within multithreaded C/C++ code(.Call interface)? It is not in case with MATLAB. I was experimenting using pthreads and OpenMP. Thanks, Rob [[alternative HTML version deleted]] __

Re: [Rd] Accessing ENVSXP and CLOSXP while processing parsed R code

2011-11-08 Thread Rob Anderson
Thanks! that was useful Rob On Mon, Nov 7, 2011 at 6:49 AM, Duncan Murdoch wrote: > On 11-11-07 5:24 AM, Rob Anderson wrote: > >> Hello Guys, >> >> Following up my earlier mail where I am trying to write an alternative >> front-end for R, I had a question ab

Re: [Rd] Question on parsing R code from C

2011-11-08 Thread Rob Anderson
Hi, With respect to initializing R state and parsing, you might want to look at the "Linking GUI's and other front-ends to R" section in Writing R Extensions . Once the initialization is done, you can use mkString() function to get an input SEXP f

[Rd] Accessing ENVSXP and CLOSXP while processing parsed R code

2011-11-07 Thread Rob Anderson
Hello Guys, Following up my earlier mail where I am trying to write an alternative front-end for R, I had a question about accessing the closures and environments in R code. Here's the function taken and modified a little from "*Lexical Scope and Statistical Computing*" ===

Re: [Rd] Standalone C++ application for processing R parser output(SEXP)

2011-03-26 Thread Rob Anderson
Thanks a lot guys. I'll try out what you suggested. Thanks, RJ On Thu, Mar 24, 2011 at 8:46 AM, Dirk Eddelbuettel wrote: > > On 24 March 2011 at 08:08, Duncan Murdoch wrote: > | On 11-03-23 7:35 PM, Rob Anderson wrote: > | > Hi All, > | > > | > I am trying to w

[Rd] Standalone C++ application for processing R parser output(SEXP)

2011-03-24 Thread Rob Anderson
Hi All, I am trying to write a source-to-source compiler for R. I am trying to leverage the R parser code for the purpose. I am trying to transform the SEXP returned from the parser into an AST for our own Ruby embedded Domain specific language. I tried using R CMD SHBIN to compile a C function t