Tools and functions for managing the download of binary files. Binary repositories are defined in YAML format. Defining new pre-download, download and post-download templates allow additional repositories to be added.
InstallationYou can install binman
from GitHub with:
# install.packages("remotes")
remotes::install_github("ropensci/binman")
Usage Examples GitHub Assets
The following is an example of using binman
to get the GitHub assets from a project. The project is https://github.com/lightbody/browsermob-proxy/releases . When a new version is released a zipped binary is added as an âassetâ. A JSON representation of the project releases is available at https://api.github.com/repos/lightbody/browsermob-proxy/releases. binman
needs a YAML file to specify how to parse this projects assets:
name: binman-bmproxy
predlfunction:
"binman::predl_github_assets":
url: https://api.github.com/repos/lightbody/browsermob-proxy/releases
platform:
- generic
history: 3
appname: "binman_bmproxy"
platformregex: browsermob-proxy
dlfunction:
"binman::download_files": []
postdlfunction:
"binman::unziptar_dlfiles": []
The file can be accessed at:
ymlfile <- system.file("examples", "yaml", "bmproxy.yml", package = "binman")
Downloading the three most recent releases can the be done using:
with resulting directory structure (We omit files for brevity):
LINUXjohn@ubuntu:~$ tree -d /home/john/.local/share/binman_bmproxy
/home/john/.local/share/binman_bmproxy
âââ generic
âââ browsermob-proxy-2.1.0
â  âââ browsermob-proxy-2.1.0
â  âââ bin
â  â  âââ conf
â  âââ lib
â  âââ ssl-support
âââ browsermob-proxy-2.1.1
â  âââ browsermob-proxy-2.1.1
â  âââ bin
â  â  âââ conf
â  âââ lib
â  âââ ssl-support
âââ browsermob-proxy-2.1.2
âââ browsermob-proxy-2.1.2
âââ bin
â  âââ conf
âââ lib
âââ ssl-support
19 directories
WINDOWS
C:\Users\john>tree C:\Users\john\AppData\Local\binman\binman_bmproxy
Folder PATH listing
Volume serial number is 7CC8-BD03
C:\USERS\JOHN\APPDATA\LOCAL\BINMAN\BINMAN_BMPROXY
ââââgeneric
ââââbrowsermob-proxy-2.1.0
â ââââbrowsermob-proxy-2.1.0
â ââââbin
â â ââââconf
â ââââlib
â ââââssl-support
ââââbrowsermob-proxy-2.1.1
â ââââbrowsermob-proxy-2.1.1
â ââââbin
â â ââââconf
â ââââlib
â ââââssl-support
ââââbrowsermob-proxy-2.1.2
ââââbrowsermob-proxy-2.1.2
ââââbin
â ââââconf
ââââlib
ââââssl-support
MACOSX
DE529:~ admin$ tree -d /Users/admin/Library/Application\ Support/binman_bmproxy
/Users/admin/Library/Application\ Support/binman_bmproxy
âââ generic
âââ browsermob-proxy-2.1.0
â  âââ browsermob-proxy-2.1.0
â  âââ bin
â  â  âââ conf
â  âââ lib
â  âââ ssl-support
âââ browsermob-proxy-2.1.1
â  âââ browsermob-proxy-2.1.1
â  âââ bin
â  â  âââ conf
â  âââ lib
â  âââ ssl-support
âââ browsermob-proxy-2.1.2
âââ browsermob-proxy-2.1.2
âââ bin
â  âââ conf
âââ lib
âââ ssl-support
19 directories
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4