clstats: Retrieve basic statistics from COLOURlovers.

Description Usage Arguments Details Value Author(s) References Examples

Description

Retrieve basic statistics from the COLOURlovers API.

Usage

1
clstats(type, fmt = 'xml')

Arguments

type

An API type. One of “colors”, “palettes”, “patterns”, or “lovers”.

fmt

A format for the API response, one of “xml” (the default) or “json”. This has essentially no effect on function behavior.

Details

Retrieve total numbers of colors, palettes, patterns, or lovers.

Value

A list of class “clstats” containing at least one named element (“total”). This should be the same regardless of the value of fmt.

Author(s)

Thomas J. Leeper

References

http://www.colourlovers.com/api/#stats

Examples

1
2
3
4
5
6
e <- function(e) NULL # function for tryCatch to fail in examples

tryCatch( clstats('colors'), error = e)
tryCatch( clstats('palettes'), error = e)
tryCatch( clstats('patterns'), error = e)
tryCatch( clstats('lovers'), error = e)


Search within the colourlovers package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.