cpp11
cpp11 copied to clipboard
cpp11 helps you to interact with R objects using C++ code.
My question was posted in https://stackoverflow.com/questions/73536969/set-utf-8-in-rcpp-vs-cpp11
This PR provides a minor optimization, that allows us to avoid the need to check the `tail` in the precious list for `R_NilValue`. This is done by ensuring that the...
Hi. Is there a plan to create those?
See https://github.com/r-lib/cpp11/pull/279#discussion_r953852119 We try hard to test against gcc 4.8, and one of the reasons is so we ensure that we are compatible with CentOS 7, which uses that compiler...
A tidy (as in less noise and just 1 commit) version of #340 As @krlmlr suggested, it might be better to vendor to `src/vendor` instead of `inst` This PR implements...
The M1 runner apparently runs checks with `-Wconversion -Wno-sign-conversion -Werror`, which has caused the arrow package to have a very long list of compiler warnings/build failures on the package check...
Reassigning an `auto` variable generated from a call to a function that returns `cpp11::writable::list` appears to leak memory. Downstream: https://github.com/r-dbi/RMariaDB/issues/309. ``` r cpp11::cpp_source(quiet = FALSE, cxx_std = "CXX17", code =...
Importing more headers than required? [How to write a vector or integer's coordinates in R's cpp11?]
As the answer to my [StackOverflow](https://stackoverflow.com/questions/77435112/how-to-write-a-vector-or-integers-coordinates-in-rs-cpp11/77437696#77437696) question says. This example shows that the documentation could be improved. ``` [[cpp11::register]] integers dummyexample(integers x1, integers x2) { int n = x1.size(); writable::integers...
Use case: debugging if a particular phenomenon occurs if code is distributed across multiple source files.
If I remember correctly, I had this mostly feature complete here: https://github.com/DavisVaughan/cpp11/pull/2 I was just waiting on the `data_p_` PR, which has been merged