Learn R Programming

SHARK4R (version 1.0.2)

get_nua_media_links: Retrieve and extract media URLs from Nordic Microalgae

Description

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)

Value

When unparsed = FALSE: a tibble 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.

Arguments

unparsed

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

See Also

https://nordicmicroalgae.org/ for Nordic Microalgae website.

https://nordicmicroalgae.org/api/ for Nordic Microalgae API documentation.

Examples

Run this code
# \donttest{
# Retrieve media information
media_info <- get_nua_media_links(unparsed = FALSE)

# Preview the extracted data
head(media_info)
# }

Run the code above in your browser using DataLab