osf_ls_nodes {osfr} | R Documentation |
List projects or components on OSF
Description
List the projects or components associated with a user or contained in the top-level of another OSF project or component.
Usage
osf_ls_nodes(x, pattern = NULL, n_max = 10, verbose = FALSE)
Arguments
x |
one of the following:
|
pattern |
Character string used to filter for results that contain the
substring |
n_max |
Maximum number of results to return from OSF (default is 10).
Set to |
verbose |
Logical, indicating whether to print informative messages
about interactions with the OSF API (default |
Value
An osf_tbl_node
with one row for each OSF project or component,
ordered by modification time.
See Also
osf_ls_files()
to generate a list of files and files.
Examples
## Not run:
# List your recent projects and components
osf_retrieve_user("me") %>%
osf_ls_nodes()
# List the first 10 components in the #ScanAllFish project
fish_ctscans <- osf_retrieve_node("ecmz4")
osf_ls_nodes(fish_ctscans)
# Now just the components with scans of species from the Sphyrna genus
osf_ls_nodes(fish_ctscans, pattern = "Sphyrna")
## End(Not run)
[Package osfr version 0.2.9 Index]