Learn R Programming

rphylopic (version 0.3.0)

search_text: Text search for uuids

Description

Text search for uuids

Usage

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

Value

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

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

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab