Learn R Programming

r4ss (version 1.44.0)

check_model: Check input argument model

Description

Check that the executable name provided in model, an input argument to numerous r4ss functions, does not contain the extension and is available.

Usage

check_model(model, mydir = getwd())

Arguments

model

Name of the Stock Synthesis model file (which has the .exe for on Windows) in mydir without the extension (if any), e.g., "ss" or "ss_win".

mydir

The directory where model is located.

Value

A cleaned model name based on the input argument.