View source: R/binmanHelpers.R
binman_predl_github_assets | R Documentation |
This is a wrapper around binman::predl_github_assets()
that adds the parameter dlPath
that allows the user to specify the
binman download path. This was built to allow custom binman install
directories for project specific environments.
binman_predl_github_assets( url, platform, history = 3L, appname, platformregex = platform, versionregex = c("", ""), dlPath = NULL )
url |
A url giving the github asset JSON for a project. As an example https://github.com/mozilla/geckodriver/releases the geckodriver project has an asset JSON available at https://api.github.com/repos/mozilla/geckodriver/releases |
platform |
A character vector of platform names |
history |
The maximum number of files to get for a platform |
appname |
Name of the app |
platformregex |
A filter for platforms. Defaults to the platform |
versionregex |
A regex for retrieving the version. |
dlPath |
Custom download path for the binman folder. Defaults to NULL,
where it will return the same table as |
A named list of data.frames. The name indicates the platform. The
data.frame should contain the version, url and file to be processed. Used
as input for download_files
or an equivalent.
## Not run: dllist <- binman_predl_github_assets( url = "https://api.github.com/repos/mozilla/geckodriver/releases", platform = c("win64"), history = 1L, appname = "geckodriver", versionregex = c("^v", ""), dlPath = here::here() ) dllist ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.