Suppose I have C ++ code to compile with Rcpp and is invoked in R.
// [[Rcpp::export]] SEXP to_env(List x) { if(x.hasAttribute("names")) { return x; } else { return NULL; } }
What NULL should return R NULL instead of failing?
NULL
Use this code:
return R_NilValue;
Source: https://habr.com/ru/post/974796/More articles:How to get the Inno Setup / DIR command line switch to work with a custom path page - inno-setupInno Setup Request user for folder and save value - parameter-passingCan't create default assignment operator if class element is a reference? (In C ++) - c ++Web sites that do not work in my Rails application when I start the Unicorn server but work on a thin server - javascriptmake a complete list of os.listdir () objects - pythonWhy java.util.Objects private constructor throws assertionError - javaWhy does Xcode not identify PFFacebookUtils? - iosHow to start Appium server from the command line in a MAC machine? - node.jsUnterminated String Constant MVC4 Razor View Engine - razorGet the Crittercism App - androidAll Articles