From 97d3986ebe0f20999c75d35374e86c53088a574b Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 9 Jan 2023 20:48:56 -0500 Subject: [PATCH] ENH use r-styler and default to rstudio style --- etc/conf.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/conf.org b/etc/conf.org index 87f7146..d626f0f 100644 --- a/etc/conf.org +++ b/etc/conf.org @@ -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)))