Re: [R-pkg-devel] [External] Re: Replacement for SETLENGTH

2025-01-16 Thread Luke Tierney via R-package-devel
You may be over-complicating this. Taking mcmc_new in src/lm_lcmc.c from https://github.com/merliseclyde/BAS, to minimize code changes I would arrange the memory management along these lines: SEXP mcmc_new(...) { /* ... */ /* create and protect ANS */ SEXP ANS = PROTECT(allocVector(V

Re: [R-pkg-devel] Help with clang-san warnings for package "tidyfit"

2025-01-16 Thread Ivan Krylov via R-package-devel
В Wed, 15 Jan 2025 22:13:36 +0100 Johann Pfitzinger пишет: > I have, so far, failed to reproduce this or to find any useful > information on how to fix it. My best guess based on the output.txt > is that it originates in "purrr" (which I depend on). This is, indeed, a purrr bug: https://github.

[R-pkg-devel] Help with clang-san warnings for package "tidyfit"

2025-01-16 Thread Johann Pfitzinger
Dear community, my R package "tidyfit" is failing CRAN submission checks with the following warning (see email below for complete results): Flavor: r-devel-linux-x86_64-debian-special-clang-san Check: Post-processing issues found for clang-san, Result: WARNING File: tidyfit-Ex.Rout cleanca