[Rcpp-devel] Fwd: cmaker : setup C/C++ develop environment for R package

2015-04-24 Thread Chenliang Xu
ime 2 are supported for Linux and Mac, and also Xcode for Mac. If you are interested, please read document on http://www.luckyrandom.com/cmaker/ and give it a try. Testing, suggestion, and advertising are welcome! Sincerely, Chenliang Xu ___ Rcpp-

Re: [Rcpp-devel] inplace modification more affect other varibles

2014-10-22 Thread Chenliang Xu
ing to the same place and I don't want to provide a copy function. On Wed, Oct 22, 2014 at 11:40 AM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > On Tue, Oct 21, 2014 at 9:22 PM, Chenliang Xu wrote: > > Hello, > > > > With the following inplace sorting e

Re: [Rcpp-devel] inplace modification more affect other varibles

2014-10-22 Thread Chenliang Xu
ibility is given to the user to clone explicitly when > changes will be made to the underlying object. > > Romain > > > Le 22 oct. 2014 à 04:13, Chenliang Xu a écrit : > > Hi Dirk, > > Thanks for your quick answer. I don't think Rcpp::clone is what I was > looking for

Re: [Rcpp-devel] inplace modification more affect other varibles

2014-10-21 Thread Chenliang Xu
o the same place. On Tue, Oct 21, 2014 at 8:31 PM, Dirk Eddelbuettel wrote: > > On 21 October 2014 at 20:22, Chenliang Xu wrote: > | Hello, > | > | With the following inplace sorting example, I understand the value of > `a` is > | sorted inplace, but it's strange to see

[Rcpp-devel] inplace modification more affect other varibles

2014-10-21 Thread Chenliang Xu
Hello, With the following inplace sorting example, I understand the value of `a` is sorted inplace, but it's strange to see the value of `b` is also modified. This can cause some hard to detect bug, since the cpp function may modify a variable defined in other scope. It seems that rcpp doesn't re

[Rcpp-devel] compileAttributes does not scan header files

2014-10-14 Thread Chenliang Xu
Hello, compileAttributes currently only scan .cpp and .c files, and ignore header files (.h, .hpp). When a function is used in two or more cpp files, the default parameter of function should be provided in function declaration, which is usually included in a header file, so it seems to be nature t

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-04-02 Thread Chenliang Xu
Maybe not. I think a function in library should do only one thing, and for DataFrame::create it is building a data.frame. If the users wish to convert string to factor, one should do it explicitly, may with a help function such as `stringsToFactor` or `as.factor`. stringsAsFactor is an important fe