The package for O'Reily's new Learning R book (called "learningr") does not work in R v3. Fortunately, the dataset I want from the package is on the package's Github page here called english_monarchs.rda.
However, for the life of me I cannot figure out how to download the rda file. This is my best attempt:
> library(RCurl)
>
> x <- getURL("https://github.com/richierocks/learningr/blob/master/data/english_monarchs.rda"); x
[1] "\n\n\n<!DOCTYPE html>\n<html>\n <head prefix=\"og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#\">\n <meta charset='utf-8'>\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <title>learningr/data/english_monarchs.rda at master · richierocks/learningr · GitHub</title>\n <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/opensearch.xml\" title=\"GitHub\" />
It goes on like this through all the html of the page, I cut it short since you get the point. I get the html but not the file itself.
Any help would be much appreciated.