Choroplethr, ggplot2 and R-Hub

December 22, 2015
By

(This article was first published on R – AriLamstein.com, and kindly contributed to R-bloggers)

Choroplethr v3.3.1 is now on CRAN. You can get it by typing the following from the R command line:

update.packages()

Note that while the new version is now on CRAN, it sometimes takes a few days for all of the CRAN mirrors to update. If you are unable to get the latest version from CRAN, you can install it from github (instructions).

Compatibility with ggplot v2.0.0

The reason for this update is compatibility with the latest version of ggplot2 (link). Shortly after the latest version of ggplot2 was released, choroplethr users started reporting the following error to me:

Error: Don’t know how to add self$ggplot_polygon to a plot

It took me a little while to realize that the problem was incompatibility with the new version of ggplot2. Once I realized the problem I was able to make the necessary changes and submit an updated version to CRAN.

Based on the number of packages which use ggplot2, I am guessing that R users might experience temporary problems with other packages as well. You can see the full list of packages which use ggplot2 here.

Enter the R Consortium and R-Hub

The update to ggplot2 was a major change. I mean “major change” in the sense of semantic versioning, not marketing. The changes were significant enough to potentially break code that depends on ggplot2.

Within the world of software engineering this is a fairly common occurence. What’s challenging about the R ecosystem is that there are so many packages, dependencies and authors that coordination about major changes can be difficult. Also, many authors only work part time on their R packages.

The good news is that the newly developed R Consortium has funded a project to help with this exact issue.The project is called R-Hub, and is led by Gábor Csárdi. You can read the press release about it here, and the full proposal here.

I am really looking forward to seeing what happens with R-Hub. It has the potential to reduce the risk that package authors face when making changes to their packages. Reducing this risk might result in even more innovation in the R ecosystem.

The post Choroplethr, ggplot2 and R-Hub appeared first on AriLamstein.com.

To leave a comment for the author, please follow the link and comment on their blog: R – AriLamstein.com.

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.

Search R-bloggers


Sponsors

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)