RcppCNPy 0.2.2

November 30, 2013

(This article was first published on Thinking inside the box , and kindly contributed to R-bloggers)

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 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 on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)