ENH use r-styler and default to rstudio style

This commit is contained in:
Nathan Dwarshuis 2023-01-09 20:48:56 -05:00
parent ade348c0d6
commit 97d3986ebe
1 changed files with 4 additions and 1 deletions

View File

@ -869,7 +869,7 @@ There's a solution to all this madness. Just use conda. Build an environment wit
End rant.
Oh yes, and to get linting to work, also install r-lintr in the conda environment. In general it seems better and less risky to install things from =conda= rather than from within an R session.
Oh yes, and to get linting to work, also install r-lintr and r-styler in the conda environment. In general it seems better and less risky to install things from =conda= rather than from within an R session.
#+begin_src emacs-lisp
(nd/when-bin "conda"
(use-package ess
@ -890,6 +890,9 @@ Oh yes, and to get linting to work, also install r-lintr in the conda environmen
inferior-R-args "--quiet --no-save"
ess-history-file "session.Rhistory"
ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/")
;; this plays more nicely with r-styler (seeing as it was designed
;; for RStudio by the people who maintain RStudio
ess-style 'RStudio
;; always start from the current file
ess-startup-directory 'default-directory)))