get_par_name: Get the name of the .par file in a directory

View source: R/helper_fxns.R

get_par_nameR Documentation

Get the name of the .par file in a directory

Description

In previous versions of Stock Synthesis,

Usage

get_par_name(dir, verbose = TRUE)

Arguments

dir

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

verbose

A logical value specifying if output should be printed to the screen.

Value

A string with the name of the .par file. If not found, will be NA. If multiple files exist, preference is given to ss3.par (default as of 3.30.22.1), followed by ss.par, followed by the most recently modified file with a *.par extension (choosing the first if two were modified at the same time).

See Also

get_dat_new_name


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