
Last chance! 50% off unlimited learning
Sale ends in
This function retrieves the JSON returned by the OSF API for a given OSF id.
If the contributors
, files
, or children
arguments are
set to TRUE
, then the linked JSON for that category is returned. Note
that only one of contributors
, files
, and children
can
be selected.
get_nodes(id = NULL, contributors = FALSE, files = FALSE,
children = FALSE, private = FALSE)
The id to search for. Use `NULL` to retrieve all, `me` for logged in account. Maximum of 1 id.
Boolean to extract the contributors of the node
Boolean to retrieve files
Boolean to retrieve children nodes of id
Boolean, retrieve private node
List object of results
# NOT RUN {
get_nodes()
get_nodes(id = 'me')
get_nodes(id = 'm5pds')
# }
Run the code above in your browser using DataLab