get_dat_new_name: Get the name of the data .ss_new file in a directory

View source: R/helper_fxns.R

get_dat_new_nameR Documentation

Get the name of the data .ss_new file in a directory

Description

In previous versions of Stock Synthesis, the file new data file was named data.ss_new. ⁠_echo⁠ was added to the name when the file was parsed into three separate files.

Usage

get_dat_new_name(dir)

Arguments

dir

A file path to the directory of interest. The default value is dir = NULL, which leads to using the current working directory.

Value

A string with the name of the data .ss_new file. If not found, will be NA. Both of strings are searched for using dir(pattern = ) and if both exist, then data_echo.ss_new is returned.

See Also

get_par_name


r4ss/r4ss documentation built on April 30, 2024, 4:42 a.m.