r-style.R:1:3: style: [assignment_linter] Use one of <-, <<- for assignment, not =.
x = 1
  ^
r-style.R:2:3: style: [spaces_left_parentheses_linter] Place a space before left parenthesis, except in a function call.
if(x) x else 2
  ^
