Wrapper for the Filebin File Sharing API

A wrapper for the Filebin API. Filebin implements convenient file sharing on the web.


{filebin}

CRANstatus GitHub Actions buildstatus Codecov testcoverage 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:

  • [x] GET /{bin}/{filename}
  • [x] DELETE /{bin}/{filename}
  • [x] POST /{bin}/{filename}

Bin endpoints:

  • [x] GET /{bin}
  • [x] PUT /{bin}
  • [x] DELETE /{bin}
  • [x] GET /qr/{bin}
  • [x] GET /archive/{bin}/tar
  • [x] GET /archive/{bin}/zip

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("filebin")

0.0.6 by Andrew B. Collier, 3 years ago


Browse source code at https://github.com/cran/filebin


Authors: Andrew B. Collier [aut, cre, cph]


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, httr, janitor, logger, purrr, stringi, tibble, tidyr

Suggests reticulate, spelling, stevedore, testthat, withr


See at CRAN