Learn R Programming

rphylopic (version 0.1.9.9321)

search_text: Text search for uuids

Description

Text search for uuids

Usage

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

Arguments

text

(character) Search string, see examples

options

(character) See here for options

simplify

(logical) Simplify result

...

Further args passed on to GET. See examples.

Value

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

Details

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

Examples

Run this code
# 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
library("httr")
search_text(text = "Homo sapiens", options = "names", config=verbose())
# }

Run the code above in your browser using DataLab