NOAA-FIMS / ModularTMBExample

Simple example showing how to interface TMB with portable models and Rcpp objects.
0 stars 2 forks source link

Feat use rcpp print messages #3

Closed Bai-Li-NOAA closed 2 years ago

Bai-Li-NOAA commented 2 years ago

This PR addresses the Rstudio message issue. When running the test file in Rstudio, it does not print out error message or outputs from vonB$show(). By using Rcpp::stop and Rcout instead of std::cout, we can see error message and outputs from vonB$show() in Rstudio now.