View source: R/item_get_fields.R
item_get_fields | R Documentation |
Retrieve specific fields from an SB item
item_get_fields(sb_id, fields, ..., drop = TRUE, session = current_session())
sb_id |
An |
fields |
a vector of fields |
... |
Additional parameters are passed on to |
drop |
logical. If only one field is selected, should the list format be dropped? |
session |
Session object from |
List serialization of chosen metadata for an SB item
# Get certain fields from an item
item_get_fields("4f4e4b24e4b07f02db6aea14", c('title', 'citation', 'contacts'))
#' # If only 1 field selection, do or don't drop list format
item_get_fields("4f4e4b24e4b07f02db6aea14", 'title')
item_get_fields("4f4e4b24e4b07f02db6aea14", 'title', drop = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.