zz_format {zzlite} | R Documentation |
Accepted formats from Zamzar
Description
Get dataframe of all the formats accepted by Zamzar. Alternatively, a dataframe of formats you can convert an origin to.
Usage
zz_format(origin = NULL, usr = NULL)
Arguments
origin |
The origin format you want to convert from.
If a valid argument is passed to
See also: https://developers.zamzar.com/formats If no argument has been passed to |
usr |
The username/API key you are using. If not set, the function
will check if a key exists as a |
Details
Please note that a Zamzar key passed as argument to usr
takes precedence over a
Zamzar key extracted from an .Renviron
.
Value
Either a dataframe of formats that you can convert to, or a dataframe of accepted origin formats.
Examples
## Not run:
# Returns a single column dataframe of all the accepted formats
# for the origin param.
zz_format(usr = "key")
# Same as above (assuming a valid key in .Renviron).
zz_format()
# Returns an error since the origin argument isn't recognized by the Zamzar API.
zz_format(origin = "invalid_origin")
# Returns a dataframe of targets that origin can be converted to,
# and of the cost of converting to a given target.
zz_format(origin = "emf")
## End(Not run)