in the browser...

Wrapping APIs in R

same URL in RCurl::getURL...

[1] "{\"has_downloads\":true,\"full_name\":\"hadley/ggplot2\",\"owner\":{\"gravatar_id\":\"7ba164f40a50bc23dbb2aa825fb7bc16\",\"login\":\"hadley\",\"avatar_url\":\"https://secure.gravatar.com/avatar/7ba164f40a50bc23dbb2aa825fb7bc16?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png\",\"url\":\"https://api.github.com/users/hadley\",\"id\":4196},\"forks_count\":53,\"homepage\":\"http://had.co.nz/ggplot2\",\"svn_url\":\"https://github.com/hadley/ggplot2\",\"mirror_url\":null,\"git_url\":\"git://github.com/hadley/ggplot2.git\",\"pushed_at\":\"2012-08-17T20:49:44Z\",\"network_count\":53,\"forks\":53,\"has_wiki\":true,\"language\":\"R\",\"created_at\":\"2008-05-25T01:21:32Z\",\"watchers\":392,\"watchers_count\":392,\"description\":\"An implementation of the Grammar of Graphics in R\",\"html_url\":\"https://github.com/hadley/ggplot2\",\"clone_url\":\"https://github.com/hadley/ggplot2.git\",\"open_issues\":106,\"open_issues_count\":106,\"has_issues\":true,\"size\":1722,\"fork\":false,\"updated_at\":\"2012-08-21T16:29:13Z\",\"ssh_url\":\"git@github.com:hadley/ggplot2.git\",\"name\":\"ggplot2\",\"url\":\"https://api.github.com/repos/hadley/ggplot2\",\"private\":false,\"id\":19438,\"master_branch\":\"master\"}"

Wrapping APIs in R

same URL in RCurl::getURL...parsed

# And parse the results to more R friendly listlibrary(RJSONIO)
fromJSON(getURL("https://api.github.com/repos/hadley/ggplot2"))

Public Library of Science uses rplos!

Public Library of Science uses rplos!

Managing bibliography - RMendeley

Manage libraries and measure impact of research

groupDocInfo(mc,530031,4344945792)

$abstract
[1] "SUMMARY: Modern biological experiments create vast amounts of data which are geographically distributed. These datasets consist of petabytes of raw data and billions of documents. Yet to the best of our knowledge, a search engine technology that searches and cross-links all different data types in life sciences does not exist.....
$authors
$authors[[1]]
forename surname
"Dominic S" "L\xfctjohann"
# ....

R + collaborative writing

knitr + Markdown

knitr + Markdown + GitHub

knitr + Markdown + GitHub = executible paper

knitr + Markdown + GitHub = pre publication review

Incorporate citations with R + Markdown

knitcitations

citet(c(Halpern2006="10.1111/j.1461-0248.2005.00827.x"))# then cite in your markdown filecitet("Halpern2006")# or read citations from a bibtex file which can be automatically generated and updated from services like Mendeleybib<-read.bibtex("example.bib")# then cite inlinecitet(bib[["knitr"]])