Skip to content

Commit

Permalink
C++ error() to Rf_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Sep 28, 2024
1 parent 4a79550 commit e0bfc03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/TMB/ll_gamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,3 @@ Type ll_gamma(objective_function<Type>* obj) // normal with parameters mu and lo
#define TMB_OBJECTIVE_PTR this

#endif

2 changes: 1 addition & 1 deletion src/TMB/ssdtools_TMBExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Type objective_function<Type>::operator() () {
} else if(model == "ll_weibull") {
return ll_weibull(this);
} else {
error("Unknown model.");
Rf_error("Unknown model.");
}
return 0;
}

0 comments on commit e0bfc03

Please sign in to comment.