Description Usage Arguments Details Value
Allows to define each component of a web API call and to map it to an argument of an R call
1 2 3 4 5 6 7 | arg.spec(default = NULL, type = class(default),
mandatory = is.null(default), validate = function(x) is.null(type) ||
class(x) %in% type, conversion = as.character, export = identity)
a(default = NULL, type = class(default), mandatory = is.null(default),
validate = function(x) is.null(type) || class(x) %in% type,
conversion = as.character, export = identity)
|
default |
The default value for this argument |
type |
The desired type (currently unenforced) |
mandatory |
Whether this argument is mandatory. |
validate |
Validation function for the value of an argument (currently unused) |
conversion |
The conversion function to be applied to an R value to obtain and appropriate encoding for the web call. |
export |
Whether this argument should aslo be an argument to the corresponding R call (some web API call take a conventional value, in other cases it can be computed from the other arguments, or it is a random id) |
Used exclusively to define arguments to the function make.web.call
A list containing the information needed by make.web.call
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.