image_info: Fetch information about an image, given its image ID

Description Usage Arguments Value See Also Examples

View source: R/image_info.R

Description

Note that there is currently no web service that provides image information, and so we are scraping results from pages of the form https://images.bioatlas.se/image/details?imageId=id. This web scraping may be fragile, and will be replaced by a web-service-based function when one becomes available.

Usage

1
image_info(id, verbose = sbdi_config()$verbose)

Arguments

id

character: IDs of images (e.g. as returned by occurrences in the imageUrl column). Each ID will be of a format something like "84654e14-dc35-4486-9e7c-40eb2f8d3faa"

verbose

logical: show additional progress information? [default is set by sbdi_config()]

Value

A data.frame with one row per id, and at least the columns imageIdentifier and imageURL

See Also

sbdi_config occurrences

Examples

1
2
3
4
5
6
7
## Not run: 
## Using IDs returned from occurrences() function

image(id = c("f31e5f0e-f964-4bc3-b8f3-78f2ad520563",
  "39091d30-3016-417f-8860-b7c2a8d37942"))

## End(Not run)

bioatlas/r-functionality documentation built on Nov. 1, 2020, 3:42 a.m.