cpp11 icon indicating copy to clipboard operation
cpp11 copied to clipboard

cpp11 helps you to interact with R objects using C++ code.

Results 115 cpp11 issues
Sort by recently updated
recently updated
newest added
trafficstars

This PR set out with the small goal of fixing `as_integers()` and `as_doubles()` to ensure that they propagate missing values from their inputs correctly when performing coercion. It got a...

Hi, this is minor, but when I was prompted: ``` The decor package(s) are required for this functionality Would you like to install them? (Y/N) ``` the capitalization of both...

The following conversions results in a run time error `Invalid input type, expected 'integer' actual 'logical'` ```c++ // cpp11::logicals val cpp11::integers ints(val); cpp11::integers ints = cpp11::as_cpp(val); ``` It's not clear...

With the following file ```c++ #include #include void c_test(cpp11::logicals t1, cpp11::logicals t2) { std::min(t1[0],t2[0]); } ``` I get ``` > cpp11::cpp_source("/home/vspinu/dev/iroll/src/tmp.cpp", quiet = F, clean = F, dir = '/home/vspinu/Dropbox/dev/iroll/')...

feature

When registering a function in a namespace such as ```cpp [[cpp11::register]] int foo::bar(int a) { return a; } ``` decor recognizes the function name as `foo::bar` and all would be...

Related to https://github.com/rstudio/rstudio/issues/10337 it would be useful if the default value of `cpp_source(file=)` was the active file, or if we had a `cpp_source_active_file()`. This can take inspiration from `devtools::test_active_file()`: https://github.com/r-lib/devtools/blob/a999c84c03a8c955bf1bc81b2ae3f6d8e1c7110b/R/test.R#L59

I am also getting the following warning with respect to package `ichimoku`(1.2.5) which was reported in #225. Just wanted to bring to your attention in case it needs fixing. ```...

It's possible to implement a `nameof()` which provides a string representation of `T` without requiring RTTI or demangling at runtime. ```c++ assert(nameof() == "cpp11::r_string"); ``` This might be helpful in...

feature

Some packages (e.g. `arrow`) go back and forth between vendored and unvendored. An `cpp_unvendor()` would be nice: - unlink the `inst/include/cpp11` directory - add LinkingTo directive