Re: [Rcpp-devel] Creating a Rcpp package : Visual C++ Library error

2012-07-17 Thread Valentin Mansion
As I was going through the Rcpp Quick Reference Guide, I just found a solution to my problem : In the .R file of my package, in the .Call function, there was no argument telling my function needed an input variable... I added this, rebuilt/installed the package, and now it works. The new .R file :

[Rcpp-devel] How to get the error message in Rinside

2012-07-17 Thread Prasanna Kumar Nelam
Hi all, R_tryEval function will tell whether the expression executed properly or not, but it is not giving what is the error by executing the expression. How can we know the error message if execution fails, can anyone help me out in this. Thanks in advance. Prasanna Kumar.N, _

[Rcpp-devel] Question about variadic argument "..." in Rcpp

2012-07-17 Thread SHEN Fei
Dear all, I got some problems with the variadic argument "..." in Rcpp. Suppose i have a R function f: f <- function(x,...) { blabla } In another R function, i want to pass this f as an argument to a C++ function, along with all its own parameters, i.e. x and the "...". I found a method tha

[Rcpp-devel] Creating a Rcpp package : Visual C++ Library error

2012-07-17 Thread Valentin Mansion
Hi everyone, I have an issue when creating a package using Rcpp, on a Windows7, 32bits computer. I haven’t found anything on the net or help pdfs that looks like my error, so maybe you can help me. I have used the Rcpp.package.skeleton function with the example_code=TRUE argument, in order to see

Re: [Rcpp-devel] link issue when Rcpp package is installed in a path with space

2012-07-17 Thread Darren Cook
>> ..., or as stated, follow the R-on-Windows FAQ, and keep R in a >> path without spaced. And Rcpp and RInside then work swimmingly, >> evem on Windoze. > ... > Like spaces, those are all perfectly valid in file/directory > names when properly quoted or escaped from the shell. In general, > whe

Re: [Rcpp-devel] Very Large Matrices in RcppArmadillo

2012-07-17 Thread French, Joshua
>To be fair, it's 300k by 300k (not 3mill by 3mill), so: > >R> (30 * 30 * 8) / 2^30 >[1] 670.5523 > >So, I guess 0.67 terabytes ... no problemo ;-) > >-steve I'm getting the picture now. Thanks for the additional example. And Doug, sorry I still missed your earlier point. __

Re: [Rcpp-devel] Very Large Matrices in RcppArmadillo

2012-07-17 Thread Steve Lianoglou
On Tue, Jul 17, 2012 at 12:08 PM, Douglas Bates wrote: > On Tue, Jul 17, 2012 at 10:44 AM, French, Joshua > wrote: >> Thank you all for the responses. >> >> Christian, I didn't know about the copy_aux_mem option. I will have to >> take a look at that. >> >> Dirk, thanks for looking into the 64-b

Re: [Rcpp-devel] Very Large Matrices in RcppArmadillo

2012-07-17 Thread Douglas Bates
On Tue, Jul 17, 2012 at 10:44 AM, French, Joshua wrote: > Thank you all for the responses. > > Christian, I didn't know about the copy_aux_mem option. I will have to > take a look at that. > > Dirk, thanks for looking into the 64-bit matrix indices. > > Doug, the place in my code where I get the

Re: [Rcpp-devel] Very Large Matrices in RcppArmadillo

2012-07-17 Thread French, Joshua
Thank you all for the responses. Christian, I didn't know about the copy_aux_mem option. I will have to take a look at that. Dirk, thanks for looking into the 64-bit matrix indices. Doug, the place in my code where I get the error is when I multiply matrices. I might have matrices X and Y, whe

Re: [Rcpp-devel] link issue when Rcpp package is installed in a path with space

2012-07-17 Thread Ken Williams
> -Original Message- > From: Dirk Eddelbuettel [mailto:e...@debian.org] > Sent: Monday, July 16, 2012 6:46 PM > To: Dirk Eddelbuettel > Cc: Ken Williams; rcpp-devel@lists.r-forge.r-project.org > Subject: Re: [Rcpp-devel] link issue when Rcpp package is installed in a path > with space > >

Re: [Rcpp-devel] Very Large Matrices in RcppArmillao

2012-07-17 Thread Douglas Bates
On Tue, Jul 17, 2012 at 8:14 AM, Dirk Eddelbuettel wrote: > > On 16 July 2012 at 23:30, French, Joshua wrote: > | I am doing some linear algebra on large matrices in R and receiving the > | following error: "allocMatrix: too many elements specified". From what I > | understand, the error is caus

Re: [Rcpp-devel] Very Large Matrices in RcppArmillao

2012-07-17 Thread Dirk Eddelbuettel
On 16 July 2012 at 23:30, French, Joshua wrote: | I am doing some linear algebra on large matrices in R and receiving the | following error: "allocMatrix: too many elements specified". From what I | understand, the error is caused by the fact that R uses 32-bit ints and not | 64-bit ints for mat

Re: [Rcpp-devel] Question regarding Rcpp/RcppArmadillo and Rcpp/sugar

2012-07-17 Thread Dirk Eddelbuettel
Venelin, You actually managed to ask several unrelated questions in a single post. It may be easier if you ask the separately. As for your question on IDEs: nobody has a fully reliable parser for C++ embedded in an IDE so I would not recommend taking the highlighting too seriously. And yes,

Re: [Rcpp-devel] Compile problem on Win x64 resolved with -std=c++0x

2012-07-17 Thread Dirk Eddelbuettel
On 17 July 2012 at 07:41, Smith, Dale wrote: | Hi all, | | I had the "long long unsigned int" problem today on Win x64. I passed | --no-multiarch to R CMD build after making a package using | Rcpp.package.skeleton. The error message in part was | | *** | C:/R/R-2.15.1/library/Rcpp/include/Rcpp/i

[Rcpp-devel] Compile problem on Win x64 resolved with -std=c++0x

2012-07-17 Thread Smith, Dale
Hi all, I had the "long long unsigned int" problem today on Win x64. I passed --no-multiarch to R CMD build after making a package using Rcpp.package.skeleton. The error message in part was *** C:/R/R-2.15.1/library/Rcpp/include/Rcpp/internal/wrap.h:433:11: error: invalid conversion from 'long lo

Re: [Rcpp-devel] Question regarding Rcpp/RcppArmadillo and Rcpp/sugar

2012-07-17 Thread Venelin Mitov
Hello, Many thanks to Dirk for the quick and helpful answer. Rcpp is a great project, really! Yet, I've been struggling a bit, trying to find what what functionality is there. If I search for NumericVector::create method in the reference site ( http://dirk.eddelbuettel.com/code/rcpp/html/classMat

Re: [Rcpp-devel] Very Large Matrices in RcppArmillao

2012-07-17 Thread Christian Gunning
On Tue, Jul 17, 2012 at 12:50 AM, Christian Gunning wrote: > On Mon, Jul 16, 2012 at 10:30 PM, > wrote: >> 2. I have found in the past that some of the speeds gains from >> RcppArmadillo in comparison to pure R are lost when passing large matrices >> as arguments. There will always be overhea