download_om: Download an operating model from the DLMtool website

View source: R/download-om.R

download_omR Documentation

Download an operating model from the DLMtool website

Description

Download an operating model from the DLMtool website

Usage

download_om(
  file = "default-download-om.rds",
  web_file,
  base_url = "http://www.datalimitedtoolkit.org/Case_Studies_Table/",
  method = "wget",
  overwrite = FALSE
)

Arguments

file

The name of the file. If there is no .rds extension one will be appended

web_file

Like this: "Pacific_Ocean_Perch_QC_BC_DFO/OM.rdata" See webpage for listing

base_url

The URL to find the web_file on

method

Download method. It seems that on "wget" works on MS Windows

overwrite

TRUE or FALSE to overwrite file

Examples

## Not run: 
download_om("pop", "Pacific_Ocean_Perch_QC_BC_DFO/OM.rdata")

## End(Not run)

pbs-assess/ggmse documentation built on Nov. 21, 2023, 8:06 p.m.