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

lint_package fails if .lintr does not end with new line #160

Closed
dirkschumacher opened this issue Jul 9, 2016 · 0 comments
Closed

lint_package fails if .lintr does not end with new line #160

dirkschumacher opened this issue Jul 9, 2016 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@dirkschumacher
Copy link

Just observed the following error. If it is a feature and not a bug, then it might make sense to improve the error message. Tested on a Mac.

cat("linters: with_defaults(closed_curly_linter = NULL)", file = ".lintr")
lintr::lint_package()

=> Error in mapply(function(from, to) paste(lines[from:to], collapse = "\n")

cat("linters: with_defaults(closed_curly_linter = NULL)\n", file = ".lintr")
lintr::lint_package()

This works as intented.

@jimhester jimhester added the bug an unexpected problem or unintended behavior label Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants