Filebin allows you to quickly & easily share files. Development of the software behind Filebin happens here:
This is an R wrapper for the Filebin API.
The documentation for {filebin}
can be found here.
Install the development version from GitHub as follows:
::install_github("datawookie/filebin") remotes
Load the package and check the versions.
library(filebin)
packageVersion("filebin")
[1] '0.0.6'
Upload a file to randomly named bin on Filebin.
<- system.file("DESCRIPTION", package = "filebin")
DESCRIPTION_PATH
<- file_post(DESCRIPTION_PATH) description
Take a look at the result.
%>% select(filename, bin) description
Download a file using an URL.
file_get(description$url, file = "description.txt")
Download a file using filename and bin.
file_get(
$filename,
description$bin,
descriptionfile = "description.txt",
overwrite = TRUE
)
Compare to original document.
md5sum(c(DESCRIPTION_PATH, "description.txt"))
File endpoints:
GET /{bin}/{filename}
DELETE /{bin}/{filename}
POST /{bin}/{filename}
Bin endpoints:
GET /{bin}
PUT /{bin}
DELETE /{bin}
GET /qr/{bin}
GET /archive/{bin}/tar
GET /archive/{bin}/zip