<div dir="ltr"><div>Hi,</div><div><br></div><div>What's the canonical way of creating a scalar SEXP in Rcpp? E.g. I would like to store a single numeric / integer / complex ... value. I can create an array with 1 element, but I couldn't find a way to do it for a scalar (and I figured out later that a scalar is *not* the same as a 1element array even though they print the same).<br></div><div><br></div><div>Any pointers?<br></div><div><br></div><div>Thanks, <br></div><div><br></div><div>Wolf<br></div></div>