It does not answer direcly your question, but have you tried "bit64" CRAN package :)
https://cran.r-project.org/web/packages/bit64/index.html ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel