ENH use r-styler and default to rstudio style
This commit is contained in:
parent
ade348c0d6
commit
97d3986ebe
|
@ -869,7 +869,7 @@ There's a solution to all this madness. Just use conda. Build an environment wit
|
||||||
|
|
||||||
End rant.
|
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
|
#+begin_src emacs-lisp
|
||||||
(nd/when-bin "conda"
|
(nd/when-bin "conda"
|
||||||
(use-package ess
|
(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"
|
inferior-R-args "--quiet --no-save"
|
||||||
ess-history-file "session.Rhistory"
|
ess-history-file "session.Rhistory"
|
||||||
ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/")
|
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
|
;; always start from the current file
|
||||||
ess-startup-directory 'default-directory)))
|
ess-startup-directory 'default-directory)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue