DataDir: Directory of the data in the installed package on your...

View source: R/Misc_Exported.R

DataDirR Documentation

Directory of the data in the installed package on your computer

Description

A way of locating where the package was installed so you can find example data files and code etc.

Usage

DataDir(stock = NA)

Arguments

stock

Character string representing the name of a .csv file e.g. 'Snapper', 'Rockfish'

Value

The file path to the object

Author(s)

T. Carruthers

Examples

## Not run: 
tilefish_location <- DataDir("Gulf_blue_tilefish")
tilefish_Data <- new("Data", tilefish_location)

## End(Not run)

MSEtool documentation built on June 8, 2022, 1:06 a.m.