[Rd] Environment setting _R_CHECK_DEPENDS_ONLY_='true'

2021-10-19 Thread John Maindonald via R-devel
Setting Sys,setenv('_R_CHECK_DEPENDS_ONLY_'=‘true’) or Sys,setenv('_R_CHECK_DEPENDS_ONLY_’=TRUE) (either appear to be acceptable) appears to have no effect when I do, e.g. $R CMD check qra_0.2.4.tar.gz * using log directory ‘/Users/johnm1/pkgs/qra.Rcheck’ * using R version 4.1.1 (2021-08-10) *

[Rd] stats::fft produces inconsistent results

2021-10-19 Thread Dipterix Wang
Dear R-devel Team, I'm developing a neuroscience signal pipeline package in R (https://github.com/dipterix/ravetools) and I noticed a weird issue that failed my unit test. Basically I was trying to use `fftw3` library to implement fast multivariate fft function in C++. When I tried to compare

Re: [Rd] stats::fft produces inconsistent results

2021-10-19 Thread Ben Bolker
This is a long shot, but here's a plausible scenario: as part of its pipeline, ravetools::mvfftw computes the mean of the input vector **and then centers it to a mean of zero** (intentionally or accidentally?) because variables are passed to compiled code by reference (someone can feel