Skip to content

Instantly share code, notes, and snippets.

@chasemc
Created July 8, 2020 10:50
Show Gist options
  • Save chasemc/07ad752ee203b37943656e96608592cf to your computer and use it in GitHub Desktop.
Save chasemc/07ad752ee203b37943656e96608592cf to your computer and use it in GitHub Desktop.
library(remotes)
pkg <- "electricShine"
repo <- "chasemc/electricShine"
remote <- lapply(repo, remotes:::github_remote, ref = "master", subdir = NULL,
auth_token = remotes:::github_pat(quiet), host = "api.github.com")
remote_sha <- remotes:::remote_sha(remote[[1]],
remotes:::local_sha(pkg))
local_sha <- remotes:::local_sha(pkg)
remotes:::different_sha(remote_sha = remote_sha, local_sha = local_sha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment