locate_folder: Find a high-level folder on ScienceBase

View source: R/locate_folder.R

locate_folderR Documentation

Find a high-level folder on ScienceBase

Description

Find a high-level folder on ScienceBase

Usage

locate_folder(folder = c("project", "metab_runs", "metab_models", "sites",
  "sites_meta", "ts_meta", "ideas", "presentations", "proposals",
  "publications"), format = c("id", "url"), by = c("tag", "dir", "either"),
  limit = 5000, browser = (format == "url"))

Arguments

folder

the folder to locate

format

character indicating whether the folder should be returned as an ID or as a full URL

by

character indicating how to search for the item: using tags ("tag", the default and recommended option), by scanning the parent directory for the desired title ("dir"), or both in combination ("either")?

limit

number of items to return, as in query_item_identifier or item_list_children

browser

logical. Should the URL be opened in a browser?

Examples

## Not run: 
locate_folder("publications", format="url")
testthat::expect_error(locate_folder("cvs", format="url"))

## End(Not run)

USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.