Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

7 results for “from:Chenliang Xu”

[Rcpp-devel] Fwd: cmaker : setup C/C++ develop environment for R package
Chenliang Xu · Apr 24, 2015 · rcpp-devel

Hi everyone, I'm trying to build a new R package `cmaker`, to setup C/C++ develop environment for R package. Powered by CMake, it generates IDE project for R package, to enjoy auto-complete, code navigation, parallel compiling and...

[Rcpp-devel] compileAttributes does not scan header files
Chenliang Xu · Oct 14, 2014 · rcpp-devel

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...

[Rcpp-devel] inplace modification more affect other varibles
Chenliang Xu · Oct 21, 2014 · rcpp-devel

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...

[Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3
Chenliang Xu · Apr 2, 2013 · rcpp-devel

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...

[Rcpp-devel] inplace modification more affect other varibles
Chenliang Xu · Oct 22, 2014 · rcpp-devel

Thanks a lot! Does that mean we should never modify an argument passed from R to cpp? On Wed, Oct 22, 2014 at 8:24 AM, Romain Francois <romain at r-enthusiasts.com> wrote: > a and b are the same...

[Rcpp-devel] inplace modification more affect other varibles
Chenliang Xu · Oct 22, 2014 · rcpp-devel

Thanks a lot! I thought that was a bug of data.table, when I tried to learn data.table. Obviously, I was wrong. It's a feature of data.table, in which all set functions change their input by reference...

[Rcpp-devel] inplace modification more affect other varibles
Chenliang Xu · Oct 21, 2014 · rcpp-devel

Hi Dirk, Thanks for your quick answer. I don't think Rcpp::clone is what I was looking for. I know `stl_sort_inplace(a)` modify the value of `a`, but it surprise me to see it modify `b`. And...

Can't find what you're looking for? Try searching with Google .