View source: R/predl_templates.R
predl_bitbucket_downloads | R Documentation |
Pre download bitbucket downloads template function
predl_bitbucket_downloads( url, platform, history, appname, platformregex = platform, versionregex = "\\d+(?:\\.\\d+)+" )
url |
A url giving the bitbucket download JSON for a project. As an example https://bitbucket.org/ariya/phantomjs/downloads the phantomjs project has an asset JSON available at https://api.bitbucket.org/2.0/repositories/ariya/phantomjs/downloads?pagelen=100 |
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. |
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: bbdata <- system.file("testdata", "test_bitbucketdl.json", package = "binman" ) platform <- c("linux64", "linux32", "windows", "macosx") platformregex <- c("linux-x86_64", "linux-i686", "windows", "macosx") bbdllist <- predl_bitbucket_downloads( url = bbdata, platform, history = 3L, appname = "binman_chromedriver", platformregex ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.