Skip to contents

This function retrieves media information from the Nordic Microalgae API and extracts slugs and URLs for different renditions (large, original, small, medium) for each media item.

Usage

get_nua_media_links(unparsed = FALSE)

Arguments

unparsed

Logical. If TRUE, complete API response is returned as an unparsed list. Default is FALSE.

Value

When unparsed = FALSE: a data frame with the following columns:

  • slug: The slug of the related taxon.

  • l_url: The URL for the "large" rendition.

  • o_url: The URL for the "original" rendition.

  • s_url: The URL for the "small" rendition.

  • m_url: The URL for the "medium" rendition.

Examples

if (FALSE) { # \dontrun{
# Retrieve media information
media_info <- get_nua_media_links(unparsed = FALSE)

# Preview the extracted data
head(media_info)
} # }