load_data_factory: Factory to create loading functions for various species

View source: R/load-data.R

load_data_factoryR Documentation

Factory to create loading functions for various species

Description

Factory to create loading functions for various species

Usage

load_data_factory(species_name, file)

Arguments

species_name

The species name as can be used in extraction with gfdata::get_commercial_samples and similar functions

file

The filename to load from

Value

A function which can be used to load data automatically

Examples

## Not run: 
load_data_pcod <- load_data_factory("pacific cod",
  file = here::here(
    "generated-data",
    "pacific-cod.rds"
  )
)

## End(Not run)

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