[Rcpp-devel] Create scalar values in Rcpp

Dirk Eddelbuettel edd at debian.org
Mon Dec 10 18:06:20 CET 2018


Jeff,

On 10 December 2018 at 08:43, Jeff Newmiller wrote:
| Your use of the term "array" in this context suggests you still don't have a firm grasp of R data types. R arrays are vectors with dim attributes. What you want is to create an R vector with 1 element, as shown in the quick reference. [1]

No need to shoot the messenger. I happen to know Wolf comes from C++ and
Pythonland where array is well defined term.

But yes, over here some things are different.  But not everybody has spent
10+ (or 20+) years in R and S land as you and I.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list