downloadDataFile: Download data from URL to local diredctory

View source: R/downloadDataFile.R

downloadDataFileR Documentation

Download data from URL to local diredctory

Description

Downloads a data file into dataDir for later use. Downloaded versions of PWFSL monitoring .RData files allow users to work with the package without access to the internet. Once data are downloaded to dataDir, any of the data loading functions can be called with the dataDir argument to replace internet downloads with local file access.

The recommended directory for PWFSL monitoring data is "~/data/monitoring/RData".

Usage

downloadDataFile(
  filename = NULL,
  baseUrl = NULL,
  dataDir = "~/data/monitoring/RData",
  ...
)

Arguments

filename

Name of the data file to be loaded.

baseUrl

Base URL for data files.

dataDir

Local directory in which to save the data file.

...

Additional arguments passed to download.file.

Value

A ws_monitor object.


MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.