Hi, I've run into this error when installing psupertime with build_vignettes=TRUE:
─ installing the package to build vignettes
E creating vignettes (18.3s)
--- re-building ‘psuper_intro.Rmd’ using rmarkdown
Quitting from lines 37-50 (psuper_intro.Rmd)
Error: processing vignette 'psuper_intro.Rmd' failed with diagnostics:
all(colSums(avg_knn_mat) == 1) is not TRUE
--- failed re-building ‘psuper_intro.Rmd’
SUMMARY: processing the following file failed:
‘psuper_intro.Rmd’
Error: Vignette re-building failed.
Execution halted
Error: Failed to install 'psupertime' from GitHub:
! System command 'R' failed
I took a look at https://github.com/wmacnair/psupertime/blob/master/R/psupertime.R and the issue appears to be related to line 524:
stopifnot( all(colSums(avg_knn_mat)==1) )
I'm using R 4.2.1 for arm64 (the new Apple Silicon M1/M2 chips). Unfortunately this may be an arm64 specific issue somehow as it installed fine on my older Intel MacBook (R 4.2.0) and on a Windows laptop with R 4.2.1 and all package dependencies newly installed. I'm at a loss as to what's causing the problem though.
I've installed it without the vignette for now and am hoping the issue won't recur with my own data. But regardless I figured it'd be best to report in case you can look into it. Thanks!