Skip to content

Commit

Permalink
use Rf_ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Aug 15, 2024
1 parent f060cce commit 93b88db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/include/testthat/testthat.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ inline std::ostream& cerr()
extern "C" SEXP run_testthat_tests(SEXP use_xml_sxp) {
bool use_xml = LOGICAL(use_xml_sxp)[0];
bool success = testthat::run_tests(use_xml);
return ScalarLogical(success);
return Rf_ScalarLogical(success);
}

# endif // TESTTHAT_TEST_RUNNER
Expand All @@ -198,7 +198,7 @@ extern "C" SEXP run_testthat_tests(SEXP use_xml_sxp) {
# include <R.h>
# include <Rinternals.h>
extern "C" SEXP run_testthat_tests() {
return ScalarLogical(true);
return Rf_ScalarLogical(true);
}

# endif // TESTTHAT_TEST_RUNNER
Expand Down

0 comments on commit 93b88db

Please sign in to comment.