View source: R/predl_templates.R
predl_github_assets | R Documentation |
Pre download Github assets template function
predl_github_assets(
url,
platform,
history,
appname,
fileregex = "",
platformregex = platform,
versionregex = c("", "")
)
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 |
fileregex |
A filter for files |
platformregex |
A filter for platforms. Defaults to the platform |
versionregex |
A regex for retrieving the version. |
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:
gadata <- system.file("testdata", "test_gitassets.json",
package = "binman"
)
platform <- c("linux64", "win64", "macos")
gadllist <- predl_github_assets(
url = gadata, platform, history = 3L,
appname = "binman_chromedriver"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.