search for: get_module_sym

Displaying 3 results from an estimated 3 matches for "get_module_sym".

2014 Oct 22
1
Problems to compile examples of RInside
...e/RInside.h:26, from rinside_module_sample0.cpp:7: rinside_module_sample0.cpp: In function ?int main(int, char**)?: /usr/local/lib/R/site-library/Rcpp/include/Rcpp/Module.h:451:5: error: ?Shield? was not declared in this scope Shield<SEXP> __load_module_call__( Rf_lang2( GET_MODULE_SYM, _rcpp_module_boot_##NAME() ); \ ^ rinside_module_sample0.cpp:27:18: note: in expansion of macro ?LOAD_RCPP_MODULE? R["bling"] = LOAD_RCPP_MODULE(bling) ; ^ /usr/local/lib/R/site-library/Rcpp/include/Rcpp/Module.h:451:5: note: suggested alternative: Shield...
2020 Mar 24
0
help with rchk warnings on Rf_eval(Rf_lang2(...))
...ckage_str) ); inst/include/Rcpp/r_cast.h 34: Shield<SEXP> call(Rf_lang2(funSym, x)); 117: Shield<SEXP> call( Rf_lang2( Rf_install( "as.character" ), x ) ); inst/include/Rcpp/Module.h 456: Shield<SEXP> __load_module_call__( Rf_lang2( GET_MODULE_SYM, _rcpp_module_boot_##NAME() ) ); \ inst/include/Rcpp/lang.h 26:#define Rcpp_lang2 Rf_lang2 edd at rob:~/git/rcpp(master)$ -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
2020 Mar 24
2
help with rchk warnings on Rf_eval(Rf_lang2(...))
> 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); Best, Lionel On 3/23/20, Dirk Eddelbuettel <edd at debian.org> wrote: > > > On 23 March 2020 at 17:07, Ben Bolker wrote: >