| progressor | R Documentation |
get_* functionsmethods for preparing/printing info for prompts for get_* functions
methods for preparing/printing info for prompts for get_* functions
total(integer) x
found(integer) list of results when name found
not_found(integer) list of results when name not found
done(integer) x
suppress(integer) x
p(integer) percent done
d(integer) number done
new()Create a new progressor object
progressor$new(items, suppress = FALSE)
items(character) xxx
suppress(logical) suppress messages. default: FALSE
A new progressor object
completed()add results to found or not found
progressor$completed(name, att)
name(character) vector of names
att(character) one of "found" or "not found"
nothing returned; adds to $found or $not_found
completed_found()add to found results
progressor$completed_found(name)
name(character) vector of taxon names
nothing returned; adds to $found
completed_not_found()add to not found results
progressor$completed_not_found(name)
name(character) vector of taxon names
nothing returned; adds to $not_found
prog_start()print messages of total queries to do, and percent completed
progressor$prog_start()
prog()prints message of found or not found using packages cli and crayon
progressor$prog(att)
att(character) one of "found" or "not found"
messages
prog_found()prints found message using packages cli and crayon
progressor$prog_found()
messages
prog_not_found()prints not found message using packages cli and crayon
progressor$prog_not_found()
messages
prog_summary()prints summary at end of result with total found and not found
progressor$prog_summary()
messages
clone()The objects of this class are cloneable with this method.
progressor$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run:
# nms <- c("Quercus", "Sasdsfasdf")
# x <- progressor$new(items = nms)
# x
# x$prog_start()
# x$completed(nms[1], "found")
# x$prog_found()
# x$completed(nms[2], "not found")
# x$prog_not_found()
# x$prog_summary()
# suppress cli::cat_line
# x <- progressor$new(items = nms, suppress = TRUE)
# x$prog_summary()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.