Skip to content

Commit 6ffdfc9

Browse files
committed
v0.2.16 release
2 parents 0a9075d + 713a906 commit 6ffdfc9

8 files changed

+26
-27
lines changed

CRAN.md

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
## Submission Checklist
22

3-
* Review CRAN policy
4-
* Check version
5-
* Run tests with
6-
* winbuilder
7-
* valgrind
8-
* rchk
9-
* Check coverage
3+
[x] Revdeps
4+
[x] Review CRAN policy
5+
[x] Check version
6+
[x] Run tests with
7+
[x] winbuilder
8+
[x] valgrind
9+
[ ] rchk
10+
[x] Check coverage
11+
[ ] Check build user
1012

1113
## Submission Notes:
1214

1315
This is a minor release primarily intended
14-
to address the undeclared dependencies in
15-
tests raised by Professor Hornik.
16-
17-
I have removed the tests in question completely
18-
from the built package. Previously, these tests
19-
were run conditionally.
16+
to address the outstanding CRAN check warnings,
17+
and fix a minor bug.
2018

2119
## R CMD check --as-cran
2220

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: Trust, but Verify
33
Description: Declarative template-based framework for verifying that objects
44
meet structural requirements, and auto-composing error messages when they do
55
not.
6-
Version: 0.2.15
6+
Version: 0.2.16
77
Authors@R: c(
88
person("Brodie", "Gaslam", email="[email protected]",
99
role=c("aut", "cre")),

src/alike.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ struct ALIKEC_res ALIKEC_alike_rec(
463463
res.dat.rec.envs->no_rec = !env_stack_status;
464464
if(env_stack_status < 0 && !set.suppress_warnings) {
465465
warning(
466-
"`alike` environment stack exhausted at recursion depth %d; %s%s",
466+
"`alike` environment stack exhausted at recursion depth %zu; %s%s",
467467
set.env_depth_max,
468468
"unable to recurse any further into environments; see ",
469469
"`env.depth.max` parameter for `vetr_settings`."

src/cstringr.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ size_t CSR_strmlen(const char * str, size_t maxlen) {
161161
size_t res = CSR_strmlen_x(str, maxlen);
162162
if(res == maxlen && *(str + res)) {
163163
// reached max len and next charcter is not NULL terminator
164-
error("%s %s %d %s",
164+
error("%s %s %zu %s",
165165
"Internal Error (CSR_strmlen): failed to find string terminator prior",
166166
"to maxlen", maxlen, "characters"
167167
);
@@ -217,7 +217,7 @@ char * CSR_strmcpy_int(const char * str, size_t maxlen, int warn) {
217217

218218
size_t len = CSR_strmlen_x(str, maxlen);
219219
if(warn && len == maxlen && str[len])
220-
warning("CSR_strmcpy: truncated string longer than %d", maxlen);
220+
warning("CSR_strmcpy: truncated string longer than %zu", maxlen);
221221

222222
char * str_new = R_alloc(len + 1, sizeof(char));
223223

@@ -262,7 +262,7 @@ void CSR_strappend(char * target, const char * str, size_t maxlen) {
262262
size_t len = CSR_strmlen_x(str, maxlen);
263263

264264
if(len == maxlen && str[len])
265-
warning("CSR_strmcopy: truncated string longer than %d", maxlen);
265+
warning("CSR_strmcopy: truncated string longer than %zu", maxlen);
266266

267267
if(len) {
268268
if(!strncpy(target, str, len)) {

src/envtrack.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ SEXP ALIKEC_env_track_test(SEXP env_list, SEXP stack_size_init, SEXP env_limit)
173173
SEXP env = VECTOR_ELT(env_list, i);
174174
if(TYPEOF(env) != ENVSXP)
175175
error(
176-
"All contents of `env` %s at item %d\n",
177-
"should be environments; error ", i + 1
176+
"All contents of `env` %s at item %jd\n",
177+
"should be environments; error ",
178+
i == INTMAX_MAX ? - 1 : (intmax_t) i + 1
178179
);
179180
res_int[i] = ALIKEC_env_track(env, envs, env_limit_int);
180181
}

src/eval.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ struct VALC_res_list VALC_evaluate_recurse(
6767
(TYPEOF(lang2) != LANGSXP && TYPEOF(lang2) != LISTSXP)
6868
) {
6969
// nocov start
70-
error("%s%s"
71-
"Internal Error: mismatched language and eval type tracking 1; contact ",
70+
error(
71+
"Internal Error: mismatched language and eval type tracking 1; contact "
7272
"maintainer."
7373
);
7474
// nocov end
7575
}
7676
if(TYPEOF(CAR(act_codes)) != INTSXP) {
7777
// nocov start
78-
error("%s%s",
79-
"Internal error: no integer codes produced by parsing process, which ",
78+
error(
79+
"Internal error: no integer codes produced by parsing process, which "
8080
"should not happen; contact maintainer."
8181
);
8282
// nocov end

src/misc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ void VALC_arg_error(SEXP tag, SEXP fun_call, const char * err_base) {
6060
if(TYPEOF(tag) != SYMSXP) {
6161
// nocov start
6262
error(
63-
"Internal Error: %s%s"
64-
"non symbol arg names are not currently supported; ",
63+
"Internal Error:"
64+
"non symbol arg names are not currently supported; "
6565
"contact maintainer."
6666
);
6767
// nocov end

src/trackinghash.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int VALC_add_to_track_hash(
107107
if(new_size > max_long) {
108108
// nocov start
109109
error(
110-
"Internal Error: attempted to allocate hash content vector bigger ",
110+
"Internal Error: attempted to allocate hash content vector bigger "
111111
"than int size."
112112
);
113113
// nocov end

0 commit comments

Comments
 (0)