Skip to contents

Diagnostic tools that look up the slot requirements of each MP and compares to the data available in the Data object.

Usage

Can(Data, timelimit = 1, MPs = NA, dev = FALSE, silent = FALSE)

Cant(Data, timelimit = 1, silent = FALSE)

DLMdiag(
  Data,
  command = c("available", "not available", "needed"),
  reps = 5,
  timelimit = 1,
  funcs1 = NA,
  dev = FALSE,
  silent = FALSE
)

Needed(Data, timelimit = 1, silent = FALSE)

Arguments

Data

A data-limited methods data object (class Data)

timelimit

The maximum time (seconds) taken for an MP to undertake 5 reps (this filters out methods that are too slow)

MPs

Optional list of MP names

dev

Logical. Run in development mode?

silent

Logical Display messages?

command

What to calculate? Character. Options = c("available", "not available", "needed")

reps

The number of replicates for the MP

funcs1

A character vector of the MP names (optional)

Functions

  • Can(): Identifies MPs that have the correct data, do not produce errors, and run within the time limit.

  • Cant(): Identifies MPs that don't have sufficient data, lead to errors, or don't run in time along with a list of their data requirements.

  • DLMdiag(): Internal function called by Can and Cant

  • Needed(): Identifies what data are needed to run the MPs that are currently not able to run given a Data object

See also

Examples

CanMPs <- Can(MSEtool::Cobia)
#>  Checking  FMSYref  ( 1 / 5 )
#>  Checking  FMSYref50  ( 2 / 5 )
#>  Checking  FMSYref75  ( 3 / 5 )
#>  Checking  NFref  ( 4 / 5 )
#>  Checking  curEref  ( 5 / 5 )
CantMPs <- Cant(MSEtool::Cobia)
#>  Checking  FMSYref  ( 1 / 5 )
#>  Checking  FMSYref50  ( 2 / 5 )
#>  Checking  FMSYref75  ( 3 / 5 )
#>  Checking  NFref  ( 4 / 5 )
#>  Checking  curEref  ( 5 / 5 )
Needs <- Needed(MSEtool::Cobia)