search_text: Text search for uuids

Description Usage Arguments Details Value Examples

View source: R/search_text.R

Description

Text search for uuids

Usage

1
search_text(text, options = "string", simplify = TRUE, ...)

Arguments

text

(character) Search string, see examples

options

(character) See here for options

simplify

(logical) Simplify result

...

curl options passed on to crul::HttpClient

Details

These aren't necessarily ones with images though. See examples

Value

A list. You always get back the UUID, and any other fields requested.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
search_text(text = "Homo sapiens")
search_text(text = "Homo sapiens", options = "names")
search_text(text = "Homo sapiens", options = "type")
search_text(text = "Homo sapiens", options = "namebankID")
search_text(text = "Homo sapiens", options = "root")
search_text(text = "Homo sapiens", options = "uri")
search_text(text = "Homo sapiens", options = c("string","type","uri"))
search_text(text = "Homo sapiens", options = c("string","type","uri"), 
  simplify=FALSE) 

# pass in curl options
search_text(text = "Homo sapiens", options = "names", verbose = TRUE)

## End(Not run)

rphylopic documentation built on July 2, 2020, 3:58 a.m.