utilMWRhttpgrace: Load external file from remote source, fail gracefully

View source: R/utilMWRhttpgrace.R

utilMWRhttpgraceR 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)


massbays-tech/MassWateR documentation built on April 12, 2025, 7:53 p.m.