Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from .lintr.R configuration when invoked via R Studio addin (but not console) #2525

Closed
HaHeho opened this issue Mar 12, 2024 · 0 comments · Fixed by #2526
Closed

Error from .lintr.R configuration when invoked via R Studio addin (but not console) #2525

HaHeho opened this issue Mar 12, 2024 · 0 comments · Fixed by #2526

Comments

@HaHeho
Copy link

HaHeho commented Mar 12, 2024

I'm filing a separate bug report as requested in #1210 (comment).

The following issue arises when using the new .lintr.R syntax in R Studio, as first described in #1210 (comment).

Executing lintr::lint("file") in the console works fine, but executing the adding via a keyboard shortcut causes the following error.

> lintr:::addin_lint()
Error in read.dcf(config_file, all = TRUE) : Invalid DCF format.
Regular lines must have a tag.
Offending lines start with:
  linters <- linters_with_defaults(
  )

The .lintr.R file is an almost empty:

linters <- linters_with_defaults(
  object_name_linter = NULL
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant