ghget | R Documentation |
Makes a repository the active repository and downloads it if necessary.
The parameter .tempdir
is TRUE
(default) then the repository is stored in the
in the temporary directory tempdir()
else in the application directory
rappdirs::user_data_dir()
for mmstat4
.
The parameter .tempdir
is not logical
then the value will be used as installation path.
ghget(..., .force = FALSE, .tempdir = TRUE, .quiet = !interactive())
... |
parameters to set and activate a repository |
.force |
logical: download and unzip in any case? (default: |
.tempdir |
logical or character: store download temporary or permanently (default: |
.quiet |
logical: show repository read attempts (default:
|
Note, the list of repository names, directories and urls is stored in the installation directory, too.
the name of the current key or nothing if unsuccessful
if (interactive()) {
# get one of the default ZIP file from internet
ghget("hu.data")
# get a locally stored zip file
ghget(dummy2=system.file("zip", "mmstat4.dummy.zip", package="mmstat4"))
# get from an URL
ghget(dummy.url="https://github.com/sigbertklinke/mmstat4.dummy/archive/refs/heads/main.zip")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.