convert_file: convert file

Description Usage Arguments Value Examples

View source: R/convert_file.R

Description

Convert a file using Brown Dog Conversion service

Usage

1
2
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

1
2
3
4
5
6
7
8
## 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)

NCSABrownDog/bd.r documentation built on Feb. 12, 2018, 11:40 p.m.