Re: [Rcpp-devel] difference between install from source and install from repositories

2014-09-18 Thread Pratibha Rana
On 09/18/2014 01:39 PM, Dirk Eddelbuettel wrote: > On 18 September 2014 at 17:08, Pratibha Rana wrote: > | Bringing it back here :) > > [..] > > | While installing from sources I used the configure options from > | /etc/R/makeconf and that solved my problem. I do think that th

Re: [Rcpp-devel] difference between install from source and install from repositories

2014-09-18 Thread Pratibha Rana
Moved to the R-SIG_Debian list. Pratibha On 09/18/2014 10:42 AM, Dirk Eddelbuettel wrote: > On 18 September 2014 at 13:47, Pratibha Rana wrote: > | Hi, > | > | What is the difference between the R installation from source and the R > | installation from ubuntu repositories. Spec

[Rcpp-devel] difference between install from source and install from repositories

2014-09-18 Thread Pratibha Rana
Hi, What is the difference between the R installation from source and the R installation from ubuntu repositories. Specifically when I install R-3.1.1 on ubuntu 14.04 from sources ldflags and CXXFLAGS are different that those from the installation from a repo. Installation from sources: R CMD co

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-04 Thread Pratibha Rana
ult, if I changed this to "LogicalVector result= R.parseEval("exists(lstname")); " it worked fine. return result[0]; } On 09/04/2014 08:37 AM, Dirk Eddelbuettel wrote: > On 4 September 2014 at 12:13, Pratibha Rana wrote: > | For me the -O2 flag did the trick. I verified it m

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-04 Thread Pratibha Rana
04, gcc 4.8.2, and... Kevin On Wed, Sep 3, 2014 at 12:34 PM, Pratibha Rana mailto:pr...@vertica.com>> wrote: I think I got to the bottom of the issue. I was using the -O0 option instead of the -O2 option while compiling the code. Including the -O2 option resolved the issue. Thanks Pratibh

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-03 Thread Pratibha Rana
I think I got to the bottom of the issue. I was using the -O0 option instead of the -O2 option while compiling the code. Including the -O2 option resolved the issue. Thanks Pratibha On 09/02/2014 04:49 PM, Dirk Eddelbuettel wrote: > Hi, > > On 2 September 2014 at 20:16, Pratibha R

[Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-02 Thread Pratibha Rana
Hi, I have a custom application that uses Rcpp and Rinside to execute R code. All was well until I was using R-3.0.0, Rcpp 0.10.2 and RInside 0.2.10 but now its time to upgrade to the latest version and I can't get even the Rinside samples to work in place of my application. My machine has Ubun

[Rcpp-devel] RInside examples cause crash

2013-09-23 Thread Pratibha Rana
Hi, I'm unable to run the examples provided in RInside/inst/examples/standard if there is another R installation on the machine. I get the following error: Error in getLoadedDLLs() : there is no .Internal function 'getLoadedDLLs' Error in checkConflicts(value) : ".isMethodsDispatchOn" is n

Re: [Rcpp-devel] R-2.15 installation interfering with R-3.0

2013-06-21 Thread Pratibha Rana
rb5support -lk5crypto -lpcre -lresolv -llber -lssl -lcrypto -lcom_err -lspread -llzo2 -lboost_serialization-gcc-mt -lboost_thread-gcc-mt -lprotobuf-lite -ljson -lm -lstdc++ -Wl,-dy -lrt -lc -ldl -lpthread -o udx-R On 06/19/2013 11:55 AM, Dirk Eddelbuettel wrote: On 19 June 2013 at 10:52, Pratibha

[Rcpp-devel] R-2.15 installation interfering with R-3.0

2013-06-19 Thread Pratibha Rana
Hi, I have an application that installs and uses R-3.0. If a machine has an installation of R-2.15 in some other location then RInside fails to initialize. If I remove R-2.15 installation then my a[pplication works fine. Here is the backtrace of the crash. (gdb) bt #0 0x2abbdf606285 in r

[Rcpp-devel] crash in Rcpp::Environment::find()

2013-05-10 Thread Pratibha Rana
Hi, My application crashes sometimes while initializing RInside. It crashes while in Rcpp::Environment::find(). The crash doesn't happen always. Here is the backtrace. Any ideas what's going on.. (gdb) bt #0 0x2abbdf606285 in raise () from /lib64/libc.so.6 #1 0x2abbdf607d30 in abort (

[Rcpp-devel] Fwd: How can I avoid calls to coerceToReal

2013-04-30 Thread Pratibha Rana
Hi, MY application is performing really slow due to unnecessary calls to coerceToReal from this line NumericVector ocol = df[j]. Here is a sample of what I am doing. Is there a way to avoid the unnecessary overhead? Please note that the data in df is float data. void writeDataToPar

[Rcpp-devel] if a call to parseEvalQ errors out then all subsequent calls to parseEvalQ error out

2012-08-29 Thread Pratibha Rana
Hi, I' developing a c++ application that uses RInside and Rcpp to pass user defined R-code to R and get the results back. I have two problems 1. if there is an error in the .R file that I evaluate using parseEvalQ, I don not get the error back. I just get the text of the R file back. 2. Whenever

Re: [Rcpp-devel] trouble creating a dataframe

2012-06-05 Thread Pratibha Rana
ush_back(inputVectors[2],"scale"); Rcpp::DataFrame df_final = Rcpp::DataFrame::create(df); return df_final; } On Tue, Jun 5, 2012 at 10:33 AM, Pratibha Rana wrote: > I can only create std::vectors. The list::create also fails. > > > On

Re: [Rcpp-devel] trouble creating a dataframe

2012-06-05 Thread Pratibha Rana
"; s[2] = "a"; DataFrame df = DataFrame::create(Named("a")=v, Named("b")=s); return df; } catch(std::exception &e) { throw; } again I get (gdb) p R_PV(df) $1 = 0 On Mon, Jun 4, 2012 at 6:02 PM, Dirk Eddelbuettel wrote: >

Re: [Rcpp-devel] trouble creating a dataframe

2012-06-04 Thread Pratibha Rana
en trying to do this for 2 days now. On Mon, Jun 4, 2012 at 4:58 PM, Dirk Eddelbuettel wrote: > > Hi Pratibha, > > On 4 June 2012 at 16:12, Pratibha Rana wrote: > | I am at my wits end trying to create a dataframe from a list of values > that I > | have. here's the code >

[Rcpp-devel] Can Rcpp::InternalFunction have a variadic function as the argument

2012-03-08 Thread Pratibha Rana
Hi, I'm trying to do something like this : void RLogger(const char *format,...) { va_list ap; va_start(ap,format); mylogger.write("R Log:",format, ap); va_end(ap); } int main(int argc, char *argv[]) { RInside RGlobal; RGlobal["my_log"] = Rcpp::InternalFunction(&RLogger); return