inbo / tutorials

A collection of technical tutorials for INBO (and anyone who's interested)
https://inbo.github.io/tutorials/
Creative Commons Attribution 4.0 International
22 stars 9 forks source link

R 4.2.0 #310

Closed ThierryO closed 2 years ago

ThierryO commented 2 years ago

Update Rprofile.site to active the checklist lintr rules by default.

ElsLommelen commented 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)

ThierryO commented 2 years ago

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.

ElsLommelen commented 2 years ago

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.)

ThierryO commented 2 years ago

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.