fetchContent: Fetch data using url by three methods
Description
Fetch data using url by three methods
Usage
fetchContent(
url1,
method = "curl",
downloadMethod = "auto",
isJson = TRUE,
retryTimes = 4
)
Arguments
- url1
A url string.
- method
Can be chosen from "download", "curl", "fromJSON".
- downloadMethod
The same methods from utils::download.file function.
- isJson
Fetched content is a json file or not. Defaulst: TRUE.
- retryTimes
retry times. Default:4