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

Dirk Eddelbuettel edd at debian.org
Wed Jul 12 13:47:55 CEST 2017


On 12 July 2017 at 08:40, David Bellot wrote:
| >
| > Have you seen my 'nanotime' package?  It does just that: provide nanosecond
| >> resolution by relying on RcppCCTZ for the parsing/formating and int64 for
| >> the
| >> storage.
| >>
| >
| ​Yes I use nanotime now. Excellent package.

Thanks!  Help/suggestion/PRs welcome at its repo.

| Also the solution to cast numericvector to long long is perfect too, as I
| needed to manipulate my timestamps anyway.

Not to be a stickler but I guess these days I might use uint64_t instead.
You should be able to get that losslessly to/from a NumericVector (aka
double).

For all things plotting for now the best bet is a (lossy !!) conversion down
to POSIXct.

| Thanks everyone, problem solved in no time !

Cool.

Dirk

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


More information about the Rcpp-devel mailing list