You are currently browsing hadleywickham’s articles.

We’re very pleased to announce the release of devtools 1.2. This version continues to make working with packages easier by increasing installation speed (skipping the build step unless local = FALSE), enhancing vignette handling (to support the non-Sweave vignettes available in R 3.0.0), and providing better default compiler flags for C and C++ code.

Also new in this release is the sha argument to source_url and source_gist. If provided, this checks that the file you download is what your expected, and is an important safety feature when running scripts over the web.

Devtools 1.2 contains many other bug fixes and minor improvements; to see them all, please read the NEWS file on github.

We’re very pleased to announce the release of devtools 1.0.  We’ve given devtools the 1.0 marker because it now works with the vast majority of packages in the wild, with this version adding support for S4 and Rcpp.  Devtools also has completely revamped code for finding Rtools on windows, including much better error messages if something is wrong with your setup. In celebration of reaching 1.0, devtools now has it’s own webpage, which provides a bit more information about why you might want to use it.

Devtools 1.0 also contains many other bug fixes and minor improvements, as listed in the NEWS file on github.

At RStudio, we want you to be effective R users. As well as creating great software, we want to make it easier for you to master R. To this end, we’re very happy to announce our new training offerings.

We’re kicking off with two public courses:

We’ve also planned a number of other courses, based on our experience with the R community, seeing what’s hard to learn and what people are struggling with. These courses are available now if you’d like us to come to your company, and based on your feedback we’ll offer public versions in the near future.

You can also read about our instructors and our philosophy.

We’re happy to announce a new version of httr, a package designed to make it easy to work with web APIs. Httr is a wrapper around RCurl, and provides:

  • functions for the most important http verbs: GET, HEAD, PATCH, PUT, DELETE and POST.
  • automatic cookie handing across requests, connection sharing, and standard SSL config.
  • a request object which captures the body of the request along with request status, cookies, headers, timings and other useful information.
  • easy ways to access the response as a raw vector, a character vector, or parsed into an R object (for html, xml, json, png and jpeg).
  • wrapper functions for the most common configuration options: set_cookies, add_headers, authenticate, use_proxy, verbose, timeout.
  • support for OAuth 1.0 and 2.0. Use oauth1.0_token and oauth2.0_token to get user tokens, and sign_oauth1.0 and sign_oauth2.0to sign requests. The demos directory has six demos of using OAuth: three for 1.0 (linkedin, twitter and vimeo) and three for 2.0 (facebook, github, google).

Track httr’s development on github, and see what’s new in this version.

Using the web logs collected when users download RStudio, we’ve prepared the following two maps showing where RStudio is being used, over the whole globe and just within the continental USA. Obviously this data is somewhat biased, as it reflects the number of downloads of RStudio, rather than the number of users of R (which we’d really love to know!). However, based on a month’s worth of data, we think the broad patterns are pretty interesting.


We made the maps by translating IP addresses to latitude and longitude with the free GeoIP databases provided by MaxMind. To make it easier to see the main patterns for each map, we used k-means clustering to group the original locations into 300 clusters for the world and 100 clusters for the US,  then used ggplot2 to display the number of users in each cluster with the area of each bubble.

We’re pleased to announce a new version of devtools, the package that makes R package development easy. The main features in this version are:

  • A complete rewrite of the code loading system which simulates namespace loading much more accurately – this means using load_all is much closer to installing and loading the package. It also compiles and loads C, C++ and Fortran code in the src/ directory.
  • All devtools command now only take a path to a package and default to using the working directory if no path is supplied.
  • All R commands are run in --vanilla mode and print the console command that’s run.
  • Install github now allows you to install from pull request and private repositories.

Plus much, much more – for a complete list of changes, see the NEWS on github. If you’re interested in package development with devtools you may also want to join the rdevtools mailing list.

The main changes in this version are to the theming system. There are also a number of enhancements to the theming system that make it easier to modify themes and we’ve renamed a number of functions to have more informative names. Your existing code should continue to work, although you may receive warnings about functions that have been deprecated. Replacing them with new versions is easy. Here are the changes you are likely to encounter:

  • opts() is deprecated. You can simply replace it with theme() in your code.
  • theme_blank(), theme_text(), theme_rect(), theme_line(), and theme_segment() are deprecated. You can replace them with element_blank(), element_text(), element_rect(), and element_line().
  • Previously, the way to set the title of a plot was opts(title="Title text"). In the new version, use ggtitle("Title text") or labs(title="Title text").

Other improvements include the addition of stat_ecdf, defaulting to the colour bar legend for continuous colour scales, nicer default breaks, better documentation and much more (including many bug fixes). You can read the complete list of changes on the development site

About

RStudio™ is an open-source integrated development environment (IDE) for R.

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 359 other followers

Follow

Get every new post delivered to your Inbox.

Join 359 other followers