help with rchk warnings on Rf_eval(Rf_lang2(...))
On 24 March 2020 at 07:19, Dirk Eddelbuettel wrote:
| On 24 March 2020 at 11:39, Lionel Henry wrote:
| | > Shield<SEXP> res(Rcpp_fast_eval(Rf_lang2(asEnvironmentSym, x), R_GlobalEnv)); | | | | The call should be protected before evaluation though. So more like: | | | | Shield<SEXP> call(Rf_lang2(asEnvironmentSym, x)); | | return Rcpp_fast_eval(call, R_GlobalEnv); | | Good catch. Fixed in https://github.com/RcppCore/Rcpp/pull/1059 along with another instance from further down in the same file. Thanks to Romain and Lionel for spotting this. Dirk
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org