.saveAsFile {onc.api} | R Documentation |
Saves the file downloaded in the response object, in the outPath, with filename
Description
Saves the file downloaded in the response object, in the outPath, with filename
Usage
.saveAsFile(response, filePath = "", fileName = "", overwrite = FALSE)
Arguments
response |
An http raw response as returned by httr::GET |
filePath |
Path where the file will be saved |
fileName |
Name of the file to save |
overwrite |
If TRUE will overwrite files with the same name |
Value
(numeric) Result code from 0: done, -1: error, -2: fileExists
[Package onc.api version 2.0.1.0 Index]