This converts a specification like PredictiveEcology/Require@development
into separate columns, "Account", "Repo", "Branch", "GitSubFolder" (if there is one)
parseGitHub(pkgDT, verbose = getOption("Require.verbose"))
parseGitHub
returns a data.table
with added columns.
A pkgDT data.table.
Numeric or logical indicating how verbose should the function
be. If -1 or -2, then as little verbosity as possible. If 0 or FALSE,
then minimal outputs; if 1
or TRUE, more outputs; 2
even more. NOTE: in
Require
function, when verbose >= 2
, the return object will have an
attribute: attr(.., "Require")
which has lots of information about the
processes of the installs.
parseGitHub
turns the single character string representation into 3 or 4:
Account
, Repo
, Branch
, SubFolder
.