MyNixOS website logo
Description

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.
Metadata

Version

0.0.6

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows