easystats / bayestestR

:ghost: Utilities for analyzing Bayesian models and posterior distributions
https://easystats.github.io/bayestestR/
GNU General Public License v3.0
577 stars 55 forks source link

Brain Bug: logical operations #282

Closed strengejacke closed 4 years ago

strengejacke commented 4 years ago

@DominiqueMakowski @mattansb Guys, we have made a stupid mistake, meaning that pkgs like bayestestR now still fail ("warn") for CRAN checks...

    !requireNamespace("dplyr", quietly = TRUE) &&
    !requireNamespace("ggplot2", quietly = TRUE)) {
  knitr::opts_chunk$set(eval = FALSE)
}

should be

if (!requireNamespace("rstanarm", quietly = TRUE) ||
    !requireNamespace("dplyr", quietly = TRUE) ||
    !requireNamespace("ggplot2", quietly = TRUE)) {
  knitr::opts_chunk$set(eval = FALSE)
}

&& => ||

DominiqueMakowski commented 4 years ago

What do you mean?

strengejacke commented 4 years ago

I think I have fixed all occurrences... In the vignettes, we have !requireNamespace() && !requireNamespace() etc. But it should be ||, not &&. Else, the vignettes will be compiled, unless all packages are unavailable. However, it should only compile if all packages are available.

So, for bayestestR 0.5.1, we now still have warnings on CRAN: https://cran.r-project.org/web/checks/check_results_bayestestR.html

Which probably should be fixed the next time (we could wait some days for rstanarm to be fixed, then the warnings will disappear).

mattansb commented 4 years ago

oops :/

strengejacke commented 4 years ago

damn, I hope we have fixed every occurence now, and in the right way... better closing this - at some point, we also need hope to fix bugs. ;-)