Skip to content
Prev 5239 / 10988 Next

[Rcpp-devel] "expecting a string" and not finding it in a CharacterVector

The version assigning an element of a const CharacterVector to a const 
std::string (named "bar" below) compiles and works fine in Rcpp 0.9.14, 
so the problem was introduced after that.

On the other hand, "as<std::string>" (function "baz") fails as in 
0.10.2, probably for the same reason Kevin identified in his last email 
(a check with ::Rf_isString).

Davor
On 13-02-07 10:55 AM, Davor Cubranic wrote: