The lintr package has undergone changes since version 3.0.0. Now, to verify if the code in a package is free of lint errors, it is necessary to create a .lintr file in the base directory of the package and specify the desired linters. In the test file, simply execute lint_package() on the package's base directory and ensure that no errors are returned.
The
lintr
package has undergone changes since version3.0.0
. Now, to verify if the code in a package is free of lint errors, it is necessary to create a.lintr
file in the base directory of the package and specify the desired linters. In the test file, simply executelint_package()
on the package's base directory and ensure that no errors are returned.