check_TMB: Check TMB is working

View source: R/check_TMB.R

check_TMBR Documentation

Check TMB is working

Description

Check that the installation of TMB is working before trying to run any VAST models.

Usage

check_TMB()

Details

This function will generate a lot of output to your screen that can be helpful when trying to troubleshoot the installation of rtools40. Most importantly, you can see the location of where your computer is trying to find make files. If you have already run this function on your computer, then you should see ⁠make: Nothing to be done for 'all'⁠. If the installation of TMB has failed, then you will see "Error in TMB::compile(...)". The most likely culprit for it failing is a faulty installation of rtools, specifically rtools40 for R version 4.0 and greater.

Value

A single integer is returned, where zero means that your installation of rtools40 and TMB is good to go. I hope you get a zero! If the status is failed, then you will see "Compilation failed", a stop message generated by TMB::compile().

Author(s)

Kelli F. Johnson

See Also

check_rtools for checking the installation of Rtools.

Examples

# Hope for a 0
check_TMB()
# If you get something other than 0, run
check_rtools()


nwfsc-assess/VAST_WestCoast documentation built on July 4, 2023, 5:45 p.m.