Skip to content

Instantly share code, notes, and snippets.

@perthr
Forked from jtoll/sourceGist.r
Last active March 30, 2020 03:37
Show Gist options
  • Save perthr/ccd1c9c8ee3b24995d01974581d6143e to your computer and use it in GitHub Desktop.
Save perthr/ccd1c9c8ee3b24995d01974581d6143e to your computer and use it in GitHub Desktop.
Source a Gist from R
# Example: Easily source a Gist from R using devtools
# 1) install devtools
if (!("devtools" %in% installed.packages()[, 1])) {
install.packages("devtools")
}
# 2) source
library(devtools)
source_gist("https://gist.github.com/perthr/9a37f173fe3f5535c5b61dfb5b5c42bc")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment