Interface for the ' API'

An R interface for the remote file hosting service 'Box' (<>). In addition to uploading and downloading files, this package includes functions which mirror base R operations for local files, (e.g. box_load(), box_save(), box_read(), box_setwd(), etc.), as well as 'git' style functions for entire directories (e.g. box_fetch(), box_push()).


boxr v0.3.2.9999

boxr v0.3.2

  • An upstream bug fix in httr for progress bars means that some work-around can be removed
  • Some minor tweaks for the latest version of httr

boxr v0.3.1

  • box_search (and convenience functions box_search_files, box_search_folders, box_search_trash) allow use of's superb searching facilities to find files and folders. Various parameters can be set to search filenames, file contents, and to limit searches to certain file types. Results are summarised by default, can be coerced via They can also be passed in place of a file_id to other boxr functions (e.g. box_dl) to perform an operation on the first result.
  • box_read_excel Finally support for everyone else's favorite way to store data!
  • box_write A convenience function to convert R objects to common file types (e.g. .json, .csv, .tsv, .xlsx, etc.), and upload to box. Using the default write function (rio::export), the file type can be determined automatically from the filename provided.
  • box_add_description A simple way to add a description to a file on These are a useful way to decribe the contents of a file, and can also be used like commit messages on GitHub, to describe recent changes made.
  • box_fresh_auth A convenience function for users having trouble authenticating -- it will delete existing tokens (which are by default hidden files) for a fresh authentication process
  • S3 classes for files, folders, and object lists
  • Objects of class boxr_object_list can be passed directly to functions in place of a file_id string
  • Objects of class boxr_object_list now have an method
  • Example of usage with magrittr pipes is added to the README
  • box file/folder id's are now validated locally before requests are sent
  • Filenames are now validated locally, with helpful/informative error mesages
  • box_read now accepts a user specified read function, which is now by default rio::import
  • box_read will now try and do the right thing for files without an extension by considering the MIME type of the API response
  • S3 classes and methods have been consolidated into three basic types, and functions now use them in a consistent manner. Now documented for those interested (?boxr_S3_classes)
  • Print methods: Prettier and more informative
  • box_getwd no longer logs an uninformative message
  • Documentation / collaboration improvements (improved function documentation, variable naming conventions, and a code of conduct)
  • Improved tests
  • options(boxr.progress = TRUE) is now respected consistently
  • Fix for spurious warnings comming from the latest version of httr (see jeroenooms/curl#30 and hadley/httr#252)
  • Fix for weird reporting for certain valid API queries, which return exactly 0 results

boxr v0.2.9

Note: Skipped a version increment for CRAN iterations

  • Namespace stuff for the latest Rbuild under Windows


Now up on CRAN:


boxr v0.2.7

  • Fixed broken link for image assets in vignette
  • The default OAuth2.0 token cache is now ~/.boxr-oauth

boxr v0.2.6

This release contains small changes to help new users get started (especially those who don't get to see the GitHub README).

  • The package vignette (vignette("boxr")) is now more oriented towards getting new users up and running (fc931cd), providing much of the same information as at ?box_auth, but with screenshots and friendlier formatting
  • Upon loading boxr, users are now provided with the GitHub issues URL for bug reports. If it looks like the user hasn't used boxr before (!file.exists("~/.boxr_oauth")), the code to generate the Getting Started vignette is presented (e18864d)
  • R help 'homepage': ?boxr now takes the user to a summary of the package, which links back to the Getting Started vignette (#31)
  • Continuous integration now covers Windows via appveyor (08925e5), and for useRs coming from GitHub, there's a few more visual aids in the README to help them evaluate/grok the package (1c574c2, 593101d, 670487b)

boxr v0.2.6 is on CRAN, the following will do the trick:


boxr v0.2.5

  • LO!
  • json is now parsed consistently by box_read() and box_read_json()
  • box_getwd() and box_setwd() now write to the correct options vars (e.g., work properly again) (#27)
  • General CRAN policy stuff
  • Improved tests (f6cc01c, 55d6581)

boxr v0.2.0

  • Several new wrapper functions for box_read have been added (#25):
    • box_read_csv
    • box_read_tsv
    • box_read_json
  • box_previous_versions allows you to query previous versions of a file
  • box_dl can now download specific versions of a file, via either the version_no or version_id parameter (#21)
  • URLs for the set-up process now point to, as opposed to (#20)

boxr v0.1.2

  • Tiny changes to make the package more amenable to CRAN (not there yet!)

boxr v0.1.0

  • Much more thorough documentation (#1, #3, #16)
  • box_dir_diff now has it's own S3 class (#16)

Reference manual

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


0.3.4 by Brendan Rocks, a year ago

Report a bug at

Browse source code at

Authors: Brendan Rocks [aut, cre], Ian Lyttle [ctb]

Documentation:   PDF Manual  

Task views: Web Technologies and Services

MIT + file LICENSE license

Imports httr, httpuv, assertthat, stringr, dplyr, digest, bit64, rio, mime, utils, stats

Suggests testthat, knitr, rmarkdown

See at CRAN