convert_file {BrownDog} | R Documentation |
convert file
Description
Convert a file using Brown Dog Conversion service
Usage
convert_file(url, input_file, output, output_path, token, wait = 60,
download = TRUE)
Arguments
url |
The URL to the Brown Dog Server to use |
input_file |
The input file, either local file with path, or file url |
output |
The output format extension |
output_path |
The path for the created output file. May contain different filename. note the path ends with '/' |
token |
Brown Dog access token |
wait |
The amount of time to wait for the DAP service to respond. Default is 60 |
download |
The flag to download the result file. Default is true |
Value
The output filename
Examples
## Not run:
key <- get_key("https://bd-api-dev.ncsa.illinois.edu", "your email", "password")
token <- get_token("https://bd-api-dev.ncsa.illinois.edu", key)
convert_file("https://bd-api-dev.ncsa.illinois.edu",
"http://browndog.ncsa.illinois.edu/examples/gi/Dongying_sample.csv", "xlsx", "/",
token)
## End(Not run)
[Package BrownDog version 0.2.1 Index]