Skip to content

Commit

Permalink
Updated RcppExports from update Rcpp to address R-devel warning (#88)
Browse files Browse the repository at this point in the history
* Updated RcppExports from update Rcpp to address R-devel warning

* Add a .codecov file to get rid of some nags
  • Loading branch information
eddelbuettel authored Nov 28, 2023
1 parent 1a6751b commit 120077d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
comment: false
coverage:
status:
project:
default:
target: 70% # the (on purpose low) required coverage value
threshold: 10% # the permitted delta in hitting the target
patch:
default:
target: 0% # the (on purpose low) required coverage value
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2023-11-28 Dirk Eddelbuettel <[email protected]>

* src/RcppExports.cpp: Regenerated under updated Rcpp to address
format string issue reported by R-devel
* R/RcppExports.R: Idem

* .codecov.yml: Added

2023-05-14 Dirk Eddelbuettel <[email protected]>

* DESCRIPTION (Version, Date): Release 0.1.10
Expand Down
2 changes: 1 addition & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ parseExample <- function() {

# Register entry points for exported C++ functions
methods::setLoadAction(function(ns) {
.Call('_RcppSimdJson_RcppExport_registerCCallable', PACKAGE = 'RcppSimdJson')
.Call(`_RcppSimdJson_RcppExport_registerCCallable`)
})
7 changes: 4 additions & 3 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#include "../inst/include/RcppSimdJson.h"
#include <Rcpp.h>
#include <string>
#include <set>
Expand Down Expand Up @@ -52,7 +53,7 @@ RcppExport SEXP _RcppSimdJson_deserialize(SEXP jsonSEXP, SEXP querySEXP, SEXP em
if (rcpp_isError_gen) {
SEXP rcpp_msgSEXP_gen = Rf_asChar(rcpp_result_gen);
UNPROTECT(1);
Rf_error(CHAR(rcpp_msgSEXP_gen));
Rf_error("%s", CHAR(rcpp_msgSEXP_gen));
}
UNPROTECT(1);
return rcpp_result_gen;
Expand Down Expand Up @@ -97,7 +98,7 @@ RcppExport SEXP _RcppSimdJson_load(SEXP jsonSEXP, SEXP querySEXP, SEXP empty_arr
if (rcpp_isError_gen) {
SEXP rcpp_msgSEXP_gen = Rf_asChar(rcpp_result_gen);
UNPROTECT(1);
Rf_error(CHAR(rcpp_msgSEXP_gen));
Rf_error("%s", CHAR(rcpp_msgSEXP_gen));
}
UNPROTECT(1);
return rcpp_result_gen;
Expand Down Expand Up @@ -130,7 +131,7 @@ RcppExport SEXP _RcppSimdJson_exceptions_enabled() {
if (rcpp_isError_gen) {
SEXP rcpp_msgSEXP_gen = Rf_asChar(rcpp_result_gen);
UNPROTECT(1);
Rf_error(CHAR(rcpp_msgSEXP_gen));
Rf_error("%s", CHAR(rcpp_msgSEXP_gen));
}
UNPROTECT(1);
return rcpp_result_gen;
Expand Down

0 comments on commit 120077d

Please sign in to comment.