sbtools1.4.1 package

USGS ScienceBase Tools

authenticate_sb

Authenticate to SB for subsequent calls [DEPRECATED]

current_session

Return current cached session

folder_create

Create a folder

get_cached_token

get cached sciencebase token

get_username

Get or set ScienceBase username

identifier_exists

Check if identifier exists

initialize_sciencebase_session

Initialize ScienceBase Session

is_logged_in

Check whether you're logged into a ScienceBase session

item_append_files

Upload File to Item

item_create

Create a new SB item

item_exists

check if identifier touple already exists on SB

item_file_download

Download files attached to item

item_get_fields

Retrieve specific fields from an SB item

item_get_parent

Get an item's parent ID

item_get

Retrieve SB item

item_list_children

Return IDs for all child items

item_list_files

Get list of files attached to SB item

item_move

Move item from one folder to another

item_publish_cloud

Publish file to public cloud S3 bucket

item_rename_files

Rename item attached files

item_replace_files

Replace files associated with an item

item_rm_files

Remove files associated with an item

item_rm_recursive

Remove an item completely by recursively removing its child items

item_rm

Remove item from SB

item_update_identifier

Add custom identifier to an existing item

item_update

Update a SB item with new metadata

item_upload_cloud

Upload File to Item Cloud Storage

item_upload_create

#' Upload file(s) and create a new item

item_upsert

Upsert an SB item

query_item_identifier

Query SB for items based on custom identifier

query_item_in_folder

Search within an SB folder

query_items

Query SB for items using generic query parameters

query_sb_datatype

Query SB for specific data type

query_sb_date

Query SB for items within a date range

query_sb_doi

Query SB for specific DOI (Digital Object Identifier)

query_sb_spatial

Query SB based on spatial extent

query_sb_text

Query SB for items containing specific text

query_sb

Query SB for items using generic query parameters

readPassword

Read in a password from the user

sb_datatypes

Query SB for all available datatypes

sb_ping

Ping ScienceBase to see if it's available

sbitem

ScienceBase item class

sbtools_GET

generic GETs for sbtools package

sbtools_POST

generic POSTs for sbtools package package wrapped for generic POSTs th...

sbtools_PUT

generic PUTs for sbtools package

sbtools-package

R interface to ScienceBase

session_age

a convienence function for getting the age of a session.

session_details

Get session info (deprecated)

session_expired

Check whether an SB session is expired

session_renew

Checks current session and re-authenticates if necessary

session_validate

Validate sbtools session state

set_endpoint

Set SB endpoint

token_stache_path

Get or set token stache data directory

user_id

Get your parent ID

Tools for interacting with U.S. Geological Survey ScienceBase <https://www.sciencebase.gov> interfaces. ScienceBase is a data cataloging and collaborative data management platform. Functions included for querying ScienceBase, and creating and fetching datasets.

  • Maintainer: David Blodgett
  • License: CC0
  • Last published: 2025-07-14