Re: [Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-11 Thread Kirill Müller
On 12.07.2017 01:09, Dirk Eddelbuettel wrote: On 11 July 2017 at 23:44, David Bellot wrote: | it looks like I couldn't find a proper solution, even after googling every | where. The question is simple: | | I have a bit64 vector of integers (timestamps of financial tick data, you | bet ?) and I wa

Re: [Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-11 Thread Dirk Eddelbuettel
On 11 July 2017 at 23:44, David Bellot wrote: | it looks like I couldn't find a proper solution, even after googling every | where. The question is simple: | | I have a bit64 vector of integers (timestamps of financial tick data, you | bet ?) and I want to pass it to a C++ function. The good ol'

Re: [Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-11 Thread Kevin Ushey
My understanding is that `integer64` actually stores its contents in an R numeric vector, so presumedly you should be able to handle this by forcefully casting the contents as you access it, e.g. #include using namespace Rcpp; // [[Rcpp::export]] NumericVector timesTwo(NumericVector input) {

[Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-11 Thread David Bellot
Hi, it looks like I couldn't find a proper solution, even after googling every where. The question is simple: I have a bit64 vector of integers (timestamps of financial tick data, you bet ?) and I want to pass it to a C++ function. The good ol' method is to convert it to strings, pass it and cast