Skip to content

Commit 93b88db

Browse files
committed
use Rf_ prefix
1 parent f060cce commit 93b88db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/testthat/testthat.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ inline std::ostream& cerr()
172172
extern "C" SEXP run_testthat_tests(SEXP use_xml_sxp) {
173173
bool use_xml = LOGICAL(use_xml_sxp)[0];
174174
bool success = testthat::run_tests(use_xml);
175-
return ScalarLogical(success);
175+
return Rf_ScalarLogical(success);
176176
}
177177

178178
# endif // TESTTHAT_TEST_RUNNER
@@ -198,7 +198,7 @@ extern "C" SEXP run_testthat_tests(SEXP use_xml_sxp) {
198198
# include <R.h>
199199
# include <Rinternals.h>
200200
extern "C" SEXP run_testthat_tests() {
201-
return ScalarLogical(true);
201+
return Rf_ScalarLogical(true);
202202
}
203203

204204
# endif // TESTTHAT_TEST_RUNNER

0 commit comments

Comments
 (0)