branch: externals/ess commit 3a634c3387a1d573e2e0540a9c721a19eb6cbc3d Author: Johan Tolö <jo...@toloe.se> Commit: Martin Mächler <maech...@stat.math.ethz.ch>
Fix for version 3.0.0 or later of the lintr R package. The lintr::with_defaults() function is deprecated. With this commit the lintr::linters_with_defaults() function is used instead. --- lisp/ess-r-flymake.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ess-r-flymake.el b/lisp/ess-r-flymake.el index 9df4402e14..577fa52261 100644 --- a/lisp/ess-r-flymake.el +++ b/lisp/ess-r-flymake.el @@ -62,7 +62,7 @@ "Default linters to use. Can be either a string with R expression to be used as is (e.g. `lintr::default_linters'). Or a list of strings where -each element is passed as argument to `lintr::with_defaults'." +each element is passed as argument to `lintr::linters_with_defaults'." :group 'ess-R :type '(choice string (repeat string)) :package-version '(ess . "18.10")) @@ -120,12 +120,12 @@ we couldn't find a .lintr file." (defun ess-r--flymake-linters () "If `ess-r-flymake-linters' is a string, use that. -Otherwise, construct a string to pass to lintr::with_defaults." +Otherwise, construct a string to pass to lintr::linters_with_defaults." (replace-regexp-in-string "[\n\t ]+" " " (if (stringp ess-r-flymake-linters) ess-r-flymake-linters - (concat "lintr::with_defaults(" + (concat "lintr::linters_with_defaults(" (mapconcat #'identity ess-r-flymake-linters ", ")