[This article was first published on Thinking inside the box , and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Right on the heels of release 0.2.1
of RcppCNPy, a new version 0.2.2 is now on CRAN.
RcppCNPy uses the CNPY library by Carl Rogers to
provide R with easy read and write access to NumPy files.
The reason for the new version that I had experimented with a different way to test endianness (as needed for the
NumPy file headers) but accidentally sent an interim tarball to CRAN which
still wanted to include Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
endian.h
promptly breaking Windows
builds. So now we do something even simpler and just rely on the (even more
complete) test for endianness when R is built, which prevents all sorts of
complications for us and builds everywhere (with thanks to Brian Ripley for the suggestion).
While we were at it, we also added a new unit test.
Full changes are listed below.
Changes in version 0.2.2 (2013-11-29)
Switched to using the result from the compile-time configuration for R to determine big or little endian (as needed for the
NPy
headers)Added a new test (and test validation result file) for a complete save-reload cycle and comparison
CRANberries also provides a diffstat report for 0.2.2 relative to 0.2.1. As always, feedback is welcome and the rcpp-devel mailing list off the R-Forge page for Rcpp is the best place to start a discussion.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
To leave a comment for the author, please follow the link and comment on their blog: Thinking inside the box .
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.