downloadDataFile: Download data from URL to local diredctory

Description Usage Arguments Value

View source: R/downloadDataFile.R

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

1
2
3
4
5
6
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.


PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.