From 93b88dbda3dd048e74dd2bce4623c9436d2013ff Mon Sep 17 00:00:00 2001 From: Kevin Ushey Date: Thu, 15 Aug 2024 15:14:35 -0700 Subject: [PATCH] use Rf_ prefix --- inst/include/testthat/testthat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/include/testthat/testthat.h b/inst/include/testthat/testthat.h index 30067b529..b1f68961a 100644 --- a/inst/include/testthat/testthat.h +++ b/inst/include/testthat/testthat.h @@ -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 @@ -198,7 +198,7 @@ extern "C" SEXP run_testthat_tests(SEXP use_xml_sxp) { # include # include extern "C" SEXP run_testthat_tests() { - return ScalarLogical(true); + return Rf_ScalarLogical(true); } # endif // TESTTHAT_TEST_RUNNER