Search the files in a box.com account
box_search(query = "", content_types = c("name", "description",
"file_content", "comments", "tags"), type = NULL, file_extensions = NULL,
ancestor_folder_ids = NULL, created_at_range = NULL,
updated_at_range = NULL, size_range = NULL, trash = FALSE,
owner_user_ids = NULL, max = 200)box_search_files(query, ...)
box_search_folders(query, ...)
box_search_trash(query, ...)
The search term that you'd like to use
The content types you'd like to search. More than one can be supplied with a vector
The type of object you'd like returned. The default of
NULL
return all possible types. Other acceptable values are "file",
"folder", or "weblink"
A vector of strings containing the file extensions (without dots) by which to narrow your search.
If supplied, results are limited to one or more parent folders
Optional. Limit search to a range of created at
times. A vector of two dates (coercible via as.POSIXct
).
Optional. Limit search to a range of updated at
times. A vector of two dates (coercible via as.POSIXct
).
Optional. Limit search to a range of file sizes, in bytes.
A vector of two whole numbers (coerible via (coercible via
as.numeric
and round
)).
Should the search be limited to the trash folder?
logical
.
Optional. Limit search to a files owned by a set of
users. A vector if IDs, coercible with as.integer64
.
numeric
. Upper limit on the number of search results
returned (protective measure for users with large numbers of files).
Parameters passed to box_search
An object of class boxr_object_list
. See
boxr_S3_classes
for details.
The box.com API supports a maximum of 200 results per request. If
max > 200
, then multiple requests will be sent to retrieve and
combine 'paginated' results for you, behind the scenes.
See the box.com search description for details of the features of the service. Some notable details:
Is available for many source code file types, though not including R at the time of writing.
Such as and
, or
, and not
(upper or lower case).
By putting them in "quotation marks".
It takes around 10 minutes for a newly uploaded file to enter the search index.