Closed ndunnewind closed 2 years ago
Thanks @ndunnewind, that's excellent. I'll try to get this fix up to CRAN today.
I think this bug/change with tidyr::replace_na()
should probably be raised as an issue with tidyr (https://github.com/tidyverse/tidyr/issues), do you agree?
I don't think tidyr::replace_na()
was ever intended to work on matrices. At least, not according to the documentation.
Using
tidyr::replace_na()
on a matrix does not appear to work anymore in tidyr 1.2.0. This base R alternative should fix this.For example, the first
nma()
call in the Plaque psoriasis HTA report example results in the errorStan does not support NA (in agd_arm_r) in data
: