repo | R Documentation |
These functions are currently experimental.
repo$list()
lists packages in a repository. It reads the PACKAGES
file containing the repository metadata.
repo_list(..., path = ".")
...
: ignored currently.
path
: path to repository. Must contain a PACKAGES
file.
Data frame of package data, a data frame with at least the following columns, possibly more if there are other entries in the metadata:
Package
Version
Depends
Imports
Suggests
Enhances
LinkingTo
License
File
DownloadURL
OS
Arch
Built
Filesize
SHA256
RVersion
Platform
GraphicsAPIVersion
InternalsId
SystemRequirements
repo$delete()
deletes matching packages from the repository
metadata.
All matching packages will be removed. It does not delete the files themselves.
repo$delete(package, ..., path = ".")
package
: package name.
...
: other fields to match, they must be named. Matching is
case insensitive.
path
: path to repository. Must contain a PACKAGES
file.
It does not check if any version of the package is already
in the repository. If you want to update a package, use
repo$update()
.
repo$add(file, ..., path = ".")
'file Package file.
'... Ignored currently.
path Path to repository. Must contain a
PACKAGES' file.
Previous version of the same package are removed. In particular, it removes packages with matching:
package name (Package
field),
R version (Rversion
field),
same OS (OS
field), or no OS
field,
same architecture (Arch
field), or not Arch
field.
repo$update(file, ..., path = ".")
'file Package file.
'... Ignored currently.
path Path to repository. Must contain a
PACKAGES' file.
Clones the GitHub repository.
Calls repo_update()
with file
, in the subdir
directory.
Adds and commits changes.
Pushes the git repository to GitHub. If the push fails, then it resets the git repository, pulls it from GitHub and tries the update process again, until the push succeeds.
This function needs command line git installed.
It sets up a cache
credential helper, so the git push
works
without interaction with the user.
repo$update_gh(repo, subdir, files)
repo
: GitHub slug, e.g. r-hub/repos
.
subdir
: subdirectory in the GitHub repository, where the R package
metadata should be updated. It must exist in the repository.
If it does not have PACKAGES*
files, then they will be created.
files
: package files to add. The files will not be added to the
repository, only to the metadata. They should be in the repository
already.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.