Skip to content

Commit

Permalink
update cran-comments and NEWS for submission to CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
merliseclyde committed Sep 17, 2024
1 parent de05879 commit f583f84
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# BAS 1.7.3

* reverted back to code using `SETLENGTH` (issue #82) to address stack imbalance issues seen in interactive checks and not flagged in `R CMD check`.

# BAS 1.7.2

* added `method="AMCMC"` for `bas.lm` to use adaptive independent Metropolis Hastings for sampling
Expand Down
18 changes: 15 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

## Submission reason

Addressed Strict and Notes for Rdevel on the [Checks page at CRAN] (https://cran.r-project.org/web/checks/check_results_BAS.html):
BAS 1.7.2 which was submitted on 9/16 to
address the "Strict" and "Notes" issues for R-Devel on the [Checks page at CRAN] (https://cran.r-project.org/web/checks/check_results_BAS.html):

- Removed legacy definitions of ‘PI’ and ‘Free’ and replaced with‘M_PI’ and ‘R_Free’ to comply with ‘STRICT_R_HEADERS’ (issue #81) to prevent package removal after 9/23/2024

- Removed non-API calls to SETLENGTH (issue #82)
- Removed non-API calls to `SETLENGTH` (issue #82)

The latter change inadvertently is leading to stack imbalances that are not caught in R CMD checks on R-Devel or R-Release with M1Mac but appear in interactive sessions or under checks with valgrind.

To eliminate the stack imbalance the src code has reverted back to using `SETLENGTH` to truncate over-allocated vectors prior to assigning to the returned SEXP and UNPROTECTING the memory before function exit. (As the number of entries is random, it is not possible to pre-determine the vector size, but just an upper limit.) This code has been in the package since 2018 and further work is still needed to update without creating other memory issues in large problems in practice.

## Test environments

Expand All @@ -18,8 +23,15 @@ Addressed Strict and Notes for Rdevel on the [Checks page at CRAN] (https://cran
## R CMD check results for this submission

* Mac, Windows, Ubunto
0 error | 0 warnings | 0 notes
0 error | 0 warnings | 1 notes

* checking compiled code ... NOTE
File 'BAS/libs/x64/BAS.dll':
Found non-API call to R: 'SETLENGTH'

Compiled code should not call non-API entry points in R.

This is under development and I ask that CRAN allow this update despite the NOTE to allow the package to be retained on CRAN. The non-API calls identified by `Strict` have been fixed.

## Reverse Dependencies

Expand Down

0 comments on commit f583f84

Please sign in to comment.