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

## Context In #86, I tested `push_back(named_arg)` only for the `list` type. c31d05a942331803f1b3444be4d1a722df5d4fff fixed the empty `names()` issue, which makes the method now work properly with `list`. ## Problem Unfortunately...

I think it is fine that the default arguments are not supported (#4, #162). But it is a bit confusing that there are no diagnostic messages about such functions, and...

feature

It'd be helpful for error messages, logging, and other debugging to have easy access to a string representations for `SEXP`s in C++. This could return the equivalent of `.Internal(inspect(some_sexp))` or...

feature

This would potentially allow easier debugging when tracking down memory issues. Basically you would need to add a call to a function in `.onLoad()` that initializes the precious list for...

feature

Arrow defines as_cpp and as_sexp for shared_ptr and vectors of shared_ptr using external_pointer, since both of those are used throughout the arrow API. This is currently accomplished by declaring the...

documentation
feature

Would it be useful to have the initializer lists constructors also for the non writable classes, or should they really only be constructed from `SEXP`, e.g. I enjoy: ``` r...

feature

Here, the resulting `cpp11` file is hard-coded to have extension .cpp: https://github.com/r-lib/cpp11/blob/df6d0eae400733efec1ebd92b5cf72f0a6c90264/R/register.R#L41 But sometimes we may need to write .cc extensions (e.g. if the other source files are also written...

See https://github.com/r-lib/systemfonts/issues/98 for the original issue. That issue turned out to be a different _error_, but this PR still silences the _warning_ that appeared there. The original issue poster confirmed...

In a few cases, it would make code slightly cleaner if external_pointer defined `operator sexp()`. It would also be nice to expose R_SetExternalPtrProtected as I use it a lot in...