[This article was first published on R Enthusiasts, 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.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Rcpp 0.10.3 is on CRAN.
Here is the part of the NEWS file related to this release
-
Changes in R code
- Prevent build failures on Windowsn when Rcpp is installed in a library path with spaces (transform paths in the same manner that R does before passing them to the build system).
-
Changes in Rcpp attributes
- Rcpp modules can now be used with sourceCpp
- Standalone roxygen chunks (e.g. to document a class) are now transposed into
RcppExports.R
- Added
Rcpp::plugins
attribute for binding directly to inline plugins. Plugins can be registered using the new
registerPlugin
function. - Added built-in
cpp11
plugin for specifying the use of C++11 in a translation unit - Merge existing values of build related environment variables for sourceCpp
- Add global package include file to
RcppExports.cpp
if it exists - Stop with an error if the file name passed to sourceCpp has spaces in it
- Return invisibly from
void
functions - Ensure that line comments invalidate block comments when
parsing for attributes - Eliminated spurious empty hello world function definition
-
Changes in Rcpp API
- The very central use of R API
R_PreserveObject
andR_ReleaseObject
has been replaced by a new system based on the functionsRcpp_PreserveObject
,Rcpp_ReleaseObject
andRcpp_ReplaceObject
which shows better performance and is implemented using a generic vector treated as a stack instead of a pairlist in the R implementation. However, as this preserve / release code is still a little rough at the edges, a new #define is used (in config.h) to disable it for now. - Platform-dependent code in
Timer.cpp
now recognises a few more BSD variants thanks to contributeddefined()
test suggestions - Support for wide character strings has been added throughout the API. In particular
String
,CharacterVector
,wrap
andas
are aware of wide character strings
- The very central use of R API
More details at Dirk’s blog
To leave a comment for the author, please follow the link and comment on their blog: R Enthusiasts.
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.