Re: [Rcpp-devel] RInside input pointers to arrays

2015-10-14 Thread Dirk Eddelbuettel
On 14 October 2015 at 15:12, Allison Irvine wrote: | I am trying to figure out how to avoid creating a copy of an array in | c++ to a Rcpp::NumericVector or std::vector in order to use the data in | an embedded R instance (RInside object). It is clear that one can copy | an array in C++ to a Rc

[Rcpp-devel] RInside input pointers to arrays

2015-10-14 Thread Allison Irvine
I am trying to figure out how to avoid creating a copy of an array in c++ to a Rcpp::NumericVector or std::vector in order to use the data in an embedded R instance (RInside object). It is clear that one can copy an array in C++ to a Rcpp::NumericVector, then assign a variable in the embedded R

Re: [Rcpp-devel] Problems with installing RcppGSL

2015-10-14 Thread Dirk Eddelbuettel
On 14 October 2015 at 15:41, binbi...@whu.edu.cn wrote: | Hi Dirk, | | Many thanks. It's working now. | | It could not find the two libraries because they were not exactly under the | folder "../lib" but in the next level "../lib/x64" or "../lib/i386", which are | the original structure from "l

Re: [Rcpp-devel] Getting Rcpp to install on Windows 10

2015-10-14 Thread Hadley Wickham
How are you installing Rcpp? You sometimes see problems like that on Windows if you try and install a package that is currently loaded. Hadley On Wed, Oct 14, 2015 at 11:41 AM, David Gerbing wrote: > Hi All > > Have a Mac and Windows 7 and all has been fine. I have learned, however, > that on W

[Rcpp-devel] Getting Rcpp to install on Windows 10

2015-10-14 Thread David Gerbing
Hi All Have a Mac and Windows 7 and all has been fine. I have learned, however, that on Windows 10 there has been a difficulty installing my package (lessR), which depends on Hadley Wickham's readxl, which depends on Rccp. When installing my package, after downloading the dependent packages and

Re: [Rcpp-devel] Problems with installing RcppGSL

2015-10-14 Thread binbi...@whu.edu.cn
Hi Dirk, Many thanks. It's working now. It could not find the two libraries because they were not exactly under the folder "../lib" but in the next level "../lib/x64" or "../lib/i386", which are the original structure from "local320.zip". I moved all the files from "../lib/x64" to "../lib", a

Re: [Rcpp-devel] Problems with installing RcppGSL

2015-10-14 Thread Dirk Eddelbuettel
There is a chance you may be confused. On 14 October 2015 at 14:18, binbi...@whu.edu.cn wrote: | Hi, | | Recently I am trying to use GSL for improving my code and I found RcppGSL is | really great. BUT I am stuck by configuring it for a few days. What I've done | is as: | | 1. Install Rcpp and