On Wed 19 Feb 2020 at 18:20, Shreyas Ragavan <shre...@fastmail.com> wrote:
>> You need to install the lintr package. > > So ESS actually needs the R package lintr installed to enable linting. > It seems strange to me that I have to open R and install a package to > get an 'IDE' functionality. Perhaps I am mistaken in my thinking. This is pretty standard behavior, I think. You'll find the same thing with Rstudio, IIRC. > The elisp I'm using is below. I'm not sure if I need to set them to be TRUE > or something. > > (setq ess-use-flymake "lintr::with_defaults( > "commas_linter", > "commented_code_linter", > "infix_spaces_linter", > "line_length_linter", > "object_length_linter", > "object_name_linter", > "object_usage_linter", > "open_curly_linter", > "pipe_continuation_linter", > "single_quotes_linter", > "spaces_inside_linter", > "spaces_left_parentheses_linter", > "trailing_blank_lines_linter", > "trailing_whitespace_linter")") You're not setting up the linters quite correctly. They need to look like line_length_linter = line_length_linter(120). Their behavior is documented --- start at ?lintr::with_defaults. Alex ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help