Closed ThierryO closed 2 years ago
Ehm, after updating checklist using install.packages("checklist")
, I found a first bug:
> lintr::lint_package()
Error in brace_linter(allow_single_line = FALSE) :
could not find function "brace_linter"
> checklist::check_lintr()
Error in brace_linter(allow_single_line = FALSE) :
could not find function "brace_linter"
(I ran this code in the same package as my previous test, and restarting RStudio gave the same result. I use lintr version 2.0.1.9000)
Try to reinstall lintr with remotes::install_github("r-lib/lintr")
. The problem is that the lintr maintainers push to the main branch without increasing the version number. This illustrates why checklist
enforces an increased version number.
I solved it this way, but I suppose similar problems may occur more often? Or is it unlikely to accidentally have a development version of lintr installed, now that you removed the ropensci.r-universe?
(I certainly did not install this development on purpose, I just installed the latest version of a bunch of packages by using install.packages("xxx")
, so the installation of this development version is likely to be triggered while installing another package.)
checklist
specifies Remotes: r-lib/lintr
. Installing checklist
with remotes::install_github()
or with install.packages()
and the INBO R-universe repo will install the development version of lintr
.
Update
Rprofile.site
to active the checklist lintr rules by default.