Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Static Code Analysis for R

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
MIT
COPYING
NotificationsYou must be signed in to change notification settings

r-lib/lintr

R build statuscodecov.ioCRAN_Status_BadgelifecycleDOI

{lintr} providesstatic code analysis for R. It checks for adherence to a given style, identifying syntax errors and possible semantic issues, then reports them to you so you can take action. Watch lintr in action in the following animation:

{lintr} is complementary tothe{styler} package which automatically restyles code, eliminating some of the problems that{lintr} can detect.

Installation

Install the stable version from CRAN:

install.packages("lintr")

Or the development version from GitHub:

# install.packages("remotes")remotes::install_github("r-lib/lintr")

Usage

And then you can create a configuration file and run selected linters:

lintr::use_lintr(type="tidyverse")# in a project:lintr::lint_dir()# in a package:lintr::lint_package()

To see a list of linters included for each configuration:

# tidyverse (default)names(lintr::linters_with_defaults())# fullnames(lintr::all_linters())

Setting up GitHub Actions

{usethis} provides helper functions to generate lint workflows for GitHub Actions:

# in a project:usethis::use_github_action("lint-project")# in a package:usethis::use_github_action("lint")

You can also run lintr during continuous integration or within your IDE or text editor. Seevignette("continuous-integration") andvignette("editors") for more details.

Without further configuration, this will run thedefault linters. Seevignette("lintr") to learn how to modify these defaults.

Code of Conduct

Please note that the lintr project is released with aContributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Static Code Analysis for R

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
MIT
COPYING

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp