mdl_folders: Retrieve all the Mendeley folders

Description Usage Arguments Examples

View source: R/mendeleyr.R

Description

Retrieve all the Mendeley folders

Usage

1
2
mdl_folders(token, group_name = NULL, group_id = NULL, max_objects = Inf,
  condition = NULL)

Arguments

token

A Token given by mdl_token() that provides access to your account.

group_name

A group name. Read group IDs through mdl_groups()

group_id

A group ID. Read group IDs through mdl_groups()

max_objects

The maximum number of objects (documents, folders, files...) to retreive

condition

Either NULL (default) or a function taking an object (document, folder, file, ...) represented as a list and returning a logical value. The function will return the objects that have returned TRUE.

Examples

1
2
3
4
5
6
7
8
## Not run: 
token <- mendeleyr::mdl_token()
mdl_folders(token, condition = function(obj) {obj$name == "YourFolderName"})
mdl_folders(token, condition = function(obj) {
   mdl_to_POSIXct(obj[["modified"]]) > mdl_to_POSIXct("2017-06-14T00:00:00Z")
})

## End(Not run)

zeehio/mendeleyr documentation built on May 6, 2019, 10:54 a.m.