Skip to content

Instantly share code, notes, and snippets.

@jtoll
Created November 8, 2012 21:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jtoll/4041987 to your computer and use it in GitHub Desktop.
Save jtoll/4041987 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/4041561")
# - or -
devtools::source_gist(4041561)
@perthr
Copy link

perthr commented Mar 27, 2020

Thanks jtoll I know you created this a long time back but it helped me, cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment