Skip to content

boxr 0.3.6

Latest
Compare
Choose a tag to compare
@ijlyttle ijlyttle released this 19 Jan 17:37

Improvements

  • adds vignette("design") to sketch out the different design philosohies that appear in boxr functions. (#170)

  • deprecates the x argument to box_write() in favor of object. (#187)

  • some return objects can be printed as tibble (vs. data-frame). To enable this behavior, set options(boxr.print_tibble = TRUE) (perhaps in your .Rprofile).

  • new tools to manage collaborations:

    • box_dir_invite() is deprecated in favor of box_collab_create().
    • adds box_collab_create(), which supports file and group based collaborations.
    • also adds box_collab_get() to check existing collaborations, and box_collab_delete() to delete.
    • box_collab_create() and box_collab_get() each return the (list-based) response from the Box API.
      If you prefer to work with data frames, these return-objects each have as.data.frame() and as_tibble() methods.
  • box_previous_versions() is superseded in favor of box_version_history():

    • returns a data frame that includes columns version_no (numeric) and version_id, rather than version (character) and file_version_id.
    • exports an internal function box_version_api(), if you are interested in the unparsed content of the response from the API.
  • new function box_version_number() returns the current version of a file; this number is consistent with the version_no argument used by functions such as box_dl().

  • new functions box_read_rds() and box_save_rds() to work with RDS files directly on Box.

  • new function box_browse() to open a browser window directly to a given folder or file on Box's web app.

  • new functions box_comment_create() and box_comment_get() to create or get comments on Box files. These functions return specially classed lists of the API response, on which you can use as.data.frame() or as_tibble().

  • uses httr::RETRY() for API requests to handle momentary issues with network connectivity. Thanks @jameslamb and @chircollab!

  • box_ls() provides the current version_id by default. (#185, @alexbrodersen)

Bug Fixes

  • box_file_delete() and box_folder_delete() each now return invisible(NULL). (#197)

  • box_auth_service() more resilient to bad-request failures. (#166)

  • box_auth() longer throws error if {usethis} not installed. (#168, @malcombarret)

  • ... is now passed to write_fun in box_write(). (#144)

  • box_ls() is more robust for remote folders that contain links. (#140)

  • box_previous_versions() fixed for "no-previous-versions" case. (#139)