
Last chance! 50% off unlimited learning
Sale ends in
source_gist(id, ..., filename = NULL, sha1 = NULL, quiet = FALSE)
source
NULL
will source the
first file.source_url
for more information on
using a SHA-1 hash.FALSE
, the default, prints informative messages.## Not run:
# # You can run gists given their id
# source_gist(6872663)
# source_gist("6872663")
#
# # Or their html url
# source_gist("https://gist.github.com/hadley/6872663")
# source_gist("gist.github.com/hadley/6872663")
#
# # It's highly recommend that you run source_gist with the optional
# # sha1 argument - this will throw an error if the file has changed since
# # you first ran it
# source_gist(6872663, sha1 = "54f1db27e60")
# # Wrong hash will result in error
# source_gist(6872663, sha1 = "54f1db27e61")
#
# #' # You can speficy a particular R file in the gist
# source_gist(6872663, filename = "hi.r")
# source_gist(6872663, filename = "hi.r", sha1 = "54f1db27e60")
# ## End(Not run)
Run the code above in your browser using DataLab