Errors after setup .lintr in the HOME directory
See original GitHub issueHere is the error after setup .lintr file in the HOME directory on MacBook. The error highlight always on the first character of the first line.
Failed to run diagnostics: callr subprocess failed: Malformed config file, ensure it ends in a newline
Invalid DCF format.
Regular lines must have a tag.
Offending lines start with:
)lintr
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Where can the .lintr config file be located? - Stack Overflow
The code to find the config seems to walk up parent directories till it finds a match. Are you sure it's not working...
Read more >lintr: A 'Linter' for R Code
Description Checks adherence to a given style, syntax errors and possible semantic issues. Supports on the fly checking of R code edited with....
Read more >Changelog - lintr
brace_linter() allows opening curly braces on a new line when there is a comment ... Parse error lints now appear with the linter...
Read more >README - lintr
Create configuration file for lintr # Source this file in package root directory # List here files to exclude from lint checking, as...
Read more >lintr package - RDocumentation
Installation. lintr is fully integrated into flycheck when using ESS. See the installalation documentation for those packages for more ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That format is not correct. (That is, the wiki description is not correct.) It is in the form of a dcf, which is correctly written as follows:
or
See if you can read the file with R’s
read.dcf()
function.The reason is that a line without a newline character (
LF
) at the end is not considered a line. https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newlineSee https://github.com/r-lib/lintr/issues/886.