[Rcpp-devel] A clean way to handle character/strings between R and Rcpp

2021-04-03 Thread prezzemolo
Hey. I am wondering if there's some general guidance on what the 'right' options are to cleanly handle character arguments passed from R to Rcpp. It is all rather simple: let's say I have a human-readable argument vector c("tree", "herb", "shrub") [It could also be a factor in R], which I can

[Rcpp-devel] A clean way to handle character/strings between R and Rcpp

2021-04-03 Thread prezzemolo
Hey.I am wondering if there's some general guidance on what the 'right' options are to cleanly handle character arguments passed from R to Rcpp.It is all rather simple: let's say I have a human-readable argument vector c("tree", "herb", "shrub") [It could also be a factor in R], which I can

Re: [Rcpp-devel] A clean way to handle character/strings between R and Rcpp

2021-04-03 Thread Dirk Eddelbuettel
On 3 April 2021 at 14:28, prezzemolo wrote: | Hey. | | I am wondering if there's some general guidance on what the 'right' options are to cleanly handle character arguments passed from R to Rcpp. | | It is all rather simple: let's say I have a human-readable argument vector c("tree", "herb",

Re: [Rcpp-devel] A clean way to handle character/strings between R and Rcpp

2021-04-03 Thread IƱaki Ucar
On Sat, 3 Apr 2021 at 16:28, prezzemolo wrote: > > Hey. > > I am wondering if there's some general guidance on what the 'right' options > are to cleanly handle character arguments passed from R to Rcpp. > > It is all rather simple: let's say I have a human-readable argument vector > c("tree",

Re: [Rcpp-devel] A clean way to handle character/strings between R and Rcpp

2021-04-03 Thread Dirk Eddelbuettel
Could you by chance send that again in __text__ format? It came into my mail client as mostly unformatted and hence unreadable word soup. Sorry for the bother, and Hi from Chicago. Dirk -- https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org