format_item: Format an item as a ScienceBase ID or URL, as requested

View source: R/locate_item.R

format_itemR Documentation

Format an item as a ScienceBase ID or URL, as requested

Description

Internal helper to locate_item. Doesn't check the value of format - that's up to the calling functions to do, for efficiency.

Usage

format_item(item, format, browser)

Arguments

item

a data.frame with a column for id (and optionally columns for title, etc.) describing one or more ScienceBase items

format

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

browser

logical. Should the URL be opened in a browser?


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