Skip to content

Commit

Permalink
v0.2.16 release
Browse files Browse the repository at this point in the history
  • Loading branch information
brodieG committed May 18, 2024
2 parents 0a9075d + 713a906 commit 6ffdfc9
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 27 deletions.
24 changes: 11 additions & 13 deletions CRAN.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
## Submission Checklist

* Review CRAN policy
* Check version
* Run tests with
* winbuilder
* valgrind
* rchk
* Check coverage
[x] Revdeps
[x] Review CRAN policy
[x] Check version
[x] Run tests with
[x] winbuilder
[x] valgrind
[ ] rchk
[x] Check coverage
[ ] Check build user

## Submission Notes:

This is a minor release primarily intended
to address the undeclared dependencies in
tests raised by Professor Hornik.

I have removed the tests in question completely
from the built package. Previously, these tests
were run conditionally.
to address the outstanding CRAN check warnings,
and fix a minor bug.

## R CMD check --as-cran

Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Title: Trust, but Verify
Description: Declarative template-based framework for verifying that objects
meet structural requirements, and auto-composing error messages when they do
not.
Version: 0.2.15
Version: 0.2.16
Authors@R: c(
person("Brodie", "Gaslam", email="[email protected]",
role=c("aut", "cre")),
Expand Down
2 changes: 1 addition & 1 deletion src/alike.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ struct ALIKEC_res ALIKEC_alike_rec(
res.dat.rec.envs->no_rec = !env_stack_status;
if(env_stack_status < 0 && !set.suppress_warnings) {
warning(
"`alike` environment stack exhausted at recursion depth %d; %s%s",
"`alike` environment stack exhausted at recursion depth %zu; %s%s",
set.env_depth_max,
"unable to recurse any further into environments; see ",
"`env.depth.max` parameter for `vetr_settings`."
Expand Down
6 changes: 3 additions & 3 deletions src/cstringr.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ size_t CSR_strmlen(const char * str, size_t maxlen) {
size_t res = CSR_strmlen_x(str, maxlen);
if(res == maxlen && *(str + res)) {
// reached max len and next charcter is not NULL terminator
error("%s %s %d %s",
error("%s %s %zu %s",
"Internal Error (CSR_strmlen): failed to find string terminator prior",
"to maxlen", maxlen, "characters"
);
Expand Down Expand Up @@ -217,7 +217,7 @@ char * CSR_strmcpy_int(const char * str, size_t maxlen, int warn) {

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

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

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

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

if(len) {
if(!strncpy(target, str, len)) {
Expand Down
5 changes: 3 additions & 2 deletions src/envtrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ SEXP ALIKEC_env_track_test(SEXP env_list, SEXP stack_size_init, SEXP env_limit)
SEXP env = VECTOR_ELT(env_list, i);
if(TYPEOF(env) != ENVSXP)
error(
"All contents of `env` %s at item %d\n",
"should be environments; error ", i + 1
"All contents of `env` %s at item %jd\n",
"should be environments; error ",
i == INTMAX_MAX ? - 1 : (intmax_t) i + 1
);
res_int[i] = ALIKEC_env_track(env, envs, env_limit_int);
}
Expand Down
8 changes: 4 additions & 4 deletions src/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ struct VALC_res_list VALC_evaluate_recurse(
(TYPEOF(lang2) != LANGSXP && TYPEOF(lang2) != LISTSXP)
) {
// nocov start
error("%s%s"
"Internal Error: mismatched language and eval type tracking 1; contact ",
error(
"Internal Error: mismatched language and eval type tracking 1; contact "
"maintainer."
);
// nocov end
}
if(TYPEOF(CAR(act_codes)) != INTSXP) {
// nocov start
error("%s%s",
"Internal error: no integer codes produced by parsing process, which ",
error(
"Internal error: no integer codes produced by parsing process, which "
"should not happen; contact maintainer."
);
// nocov end
Expand Down
4 changes: 2 additions & 2 deletions src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void VALC_arg_error(SEXP tag, SEXP fun_call, const char * err_base) {
if(TYPEOF(tag) != SYMSXP) {
// nocov start
error(
"Internal Error: %s%s"
"non symbol arg names are not currently supported; ",
"Internal Error:"
"non symbol arg names are not currently supported; "
"contact maintainer."
);
// nocov end
Expand Down
2 changes: 1 addition & 1 deletion src/trackinghash.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int VALC_add_to_track_hash(
if(new_size > max_long) {
// nocov start
error(
"Internal Error: attempted to allocate hash content vector bigger ",
"Internal Error: attempted to allocate hash content vector bigger "
"than int size."
);
// nocov end
Expand Down

0 comments on commit 6ffdfc9

Please sign in to comment.