utilMWRhttpgrace {MassWateR} | R Documentation |
Load external file from remote source, fail gracefully
Description
Load external file from remote source, fail gracefully
Usage
utilMWRhttpgrace(remote_file)
Arguments
remote_file |
URL of the external file |
Value
The external file as an RData object
Examples
# fails gracefully
utilMWRhttpgrace('http://httpbin.org/status/404')
# imports data or fails gracefully
fl <- 'https://github.com/massbays-tech/MassWateRdata/raw/main/data/streamsMWR.RData'
utilMWRhttpgrace(fl)
[Package MassWateR version 2.1.4 Index]