powered by
If a package is installed from GitHub this function tries to retrieve the reference (i.e. user name, repository name, and commit) from (a) the provided sessionInfo, or (b) locally, and only if the package is installed (!), using session_info.
session_info
getGitHubRef(pkg, pkgs = c(sessionInfo()$otherPkgs, sessionInfo()$loadedOnly))
The name of the package to retrieve the reference for
Lists of packages from a sessionInfo object
A character string with a short refernce, e.g. r-hub/sysreqs@481d263, NA is nothign could be found
r-hub/sysreqs@481d263
NA
# NOT RUN { getGitHubRef(rsysreqs) # } # NOT RUN { # }
Run the code above in your browser using DataLab