Open bkietz opened 3 years ago
It'd be helpful for error messages, logging, and other debugging to have easy access to a string representations for SEXPs in C++. This could return the equivalent of .Internal(inspect(some_sexp)) or capture.output(print(some_sexp)).
SEXP
.Internal(inspect(some_sexp))
capture.output(print(some_sexp))
See original discussion here: https://github.com/r-lib/cpp11/pull/209#discussion_r674209915
cpp11::sexp value = ... std::string str = value.inspect(); std::string str = value.inspect(/*depth=*/2); // limit inspection of sub objects
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))
orcapture.output(print(some_sexp))
.See original discussion here: https://github.com/r-lib/cpp11/pull/209#discussion_r674209915