The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

{filebin}

CRAN status GitHub Actions build status Codecov test coverage Lifecycle: experimental

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.

Installation

Install the development version from GitHub as follows:

remotes::install_github("datawookie/filebin")

Basic Usage

Load the package and check the versions.

library(filebin)

packageVersion("filebin")
[1] '0.0.6'

Upload a file to randomly named bin on Filebin.

DESCRIPTION_PATH <- system.file("DESCRIPTION", package = "filebin")

description <- file_post(DESCRIPTION_PATH)

Take a look at the result.

description %>% select(filename, bin)

Download a file using an URL.

file_get(description$url, file = "description.txt")

Download a file using filename and bin.

file_get(
  description$filename,
  description$bin,
  file = "description.txt",
  overwrite = TRUE
)

Compare to original document.

md5sum(c(DESCRIPTION_PATH, "description.txt"))

API Endpoints

File endpoints:

Bin endpoints:

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.