box_version_history function

Get version information

Get version information

Box uses file versioning, but the API does not explicitly provide version numbers. These functions use modified_date as a proxy to determine a version number (version_no), which you can use with box_dl() and box_read().

box_version_history(file_id) box_version_number(file_id)

Arguments

  • file_id: numeric or character, file ID at Box.

Returns

  • box_previous_versions(): data.frame describing previous versions of file.
  • box_version(): integer version number of most-recent version of file.

Details

  • box_version_history(), previously called box_previous_versions(), gets information on all previous versions of a file. If there are no previous versions, this function returns NULL.
  • box_version_number() gets the version number of the most-recent version.
  • To access the Box version API itself, you can use box_version_api().

References

This function is a light wrapper of the box.com API versions method.

https://developer.box.com/reference/get-files-id-versions/

See Also

box_version_api(), box_dl(), box_read()

  • Maintainer: Ian Lyttle
  • License: MIT + file LICENSE
  • Last published: 2021-01-19