From @je30 @end|ng |rom c@m@@c@uk Thu Apr 11 12:51:29 2024 From: @je30 @end|ng |rom c@m@@c@uk (Stephen J. Eglen) Date: Thu, 11 Apr 2024 11:51:29 +0100 Subject: [ESS] Displaying R plots within an Emacs buffer In-Reply-To: (Stephen J. Eglen's message of "Wed, 27 Mar 2024 10:53:41 +0000") References: <87bk73lr2e.fsf@gmail.com> <8734seqe0s.fsf@gmail.com> Message-ID: I've tidied up the code for showing R plots as SVG in an Emacs buffer; it is now on melpa: https://melpa.org/#/essgd so package.el can grab it easily enough. Best wishes, Stephen On Wed, Mar 27 2024, Stephen J. Eglen wrote: >>> I've got it now working locally so that the aspect ratio is >>> the >>> same size >>> as the window that you use to view the svg. This I think is >>> more >>> flexible. >> >> Looking forward to that functionality :-) > > Version 2 is now live for testing: > > code: https://github.com/sje30/ess-unigd/tree/main/v2 > > demonstration: https://youtu.be/TrwE_80eVTw > > Stephen From t@v|b@r @end|ng |rom gm@||@com Thu Apr 11 12:46:23 2024 From: t@v|b@r @end|ng |rom gm@||@com (Micha Silver) Date: Thu, 11 Apr 2024 13:46:23 +0300 Subject: [ESS] Parameterized quarto qmd in ESS? Message-ID: I'm working on a quarto template with ESS that runs 'R' code chunks . When using RStudio, if there are parameters set in the yaml header, the default values are available in code chunks (for testing the template). However in ESS the `params$...` variables are not available. How would I create a parametrized quarto document in ESS? Thanks, Micha -- Micha Silver Ben Gurion Univ. Sde Boker, Remote Sensing Lab cell: +972-523-665918 From @unyoung@h|n @end|ng |rom po@tech@@c@kr Sat Apr 27 12:53:22 2024 From: @unyoung@h|n @end|ng |rom po@tech@@c@kr (=?utf-8?B?7Iug7ISg7JiBKOyImO2VmeqzvCk=?=) Date: Sat, 27 Apr 2024 10:53:22 +0000 Subject: [ESS] Error installing on ubuntu Message-ID: Dear all, I get the following error message: make -C lisp all make[1]: Entering directory '/home/mathi/ess-24.01.1/lisp' test -f ../etc/.IS.RELEASE || wget -qO - https://raw.githubusercontent.com/JuliaEditorSupport/julia-emacs/master/julia-mode.el > julia-mode.el test -f ../etc/.IS.RELEASE || wget -qO - https://raw.githubusercontent.com/JuliaEditorSupport/julia-emacs/master/julia-mode-latexsubs.el > julia-mode-latexsubs.el Computing dependencies sed: can't read julia-mode-latexsubs.el: No such file or directory ? ? In toplevel form: julia-mode.el:40:2: Error: Cannot open load file: No such file or directory, julia-mode-latexsubs make[1]: *** [Makefile:58: julia-mode.elc] Error 1 make[1]: Leaving directory '/home/mathi/ess-24.01.1/lisp' make: *** [Makefile:30: lisp] Error 2 I uncommented some lines related with Julia in Makefile, but that did fix the issue. Any advice is appreciated. Thanks. Sunyoung Shin [[alternative HTML version deleted]] From edd @end|ng |rom deb|@n@org Sun Apr 28 05:36:11 2024 From: edd @end|ng |rom deb|@n@org (Dirk Eddelbuettel) Date: Sat, 27 Apr 2024 22:36:11 -0500 Subject: [ESS] Error installing on ubuntu In-Reply-To: References: Message-ID: <26157.50219.563965.886573@rob.eddelbuettel.com> On 27 April 2024 at 10:53, ???(???) via ESS-help wrote: | Dear all, | | I get the following error message: | | make -C lisp all | make[1]: Entering directory '/home/mathi/ess-24.01.1/lisp' | test -f ../etc/.IS.RELEASE || wget -qO - https://raw.githubusercontent.com/JuliaEditorSupport/julia-emacs/master/julia-mode.el > julia-mode.el | test -f ../etc/.IS.RELEASE || wget -qO - https://raw.githubusercontent.com/JuliaEditorSupport/julia-emacs/master/julia-mode-latexsubs.el > julia-mode-latexsubs.el | Computing dependencies | sed: can't read julia-mode-latexsubs.el: No such file or directory | | ? | ? | | In toplevel form: | julia-mode.el:40:2: Error: Cannot open load file: No such file or directory, julia-mode-latexsubs | make[1]: *** [Makefile:58: julia-mode.elc] Error 1 | make[1]: Leaving directory '/home/mathi/ess-24.01.1/lisp' | make: *** [Makefile:30: lisp] Error 2 | | I uncommented some lines related with Julia in Makefile, but that did fix the issue. | | Any advice is appreciated. Thanks. Where did you start from? I sometimes use the Debian/Ubuntu (that I used to look after, now it is done by Seb, see https://tracker.debian.org/pkg/ess and https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&keywords=ess&searchon=sourcenames) and sometimes I use melpa. It generally 'just works'. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org From @rum|n@t @end|ng |rom gm@||@com Sun Apr 28 07:57:14 2024 From: @rum|n@t @end|ng |rom gm@||@com (Susumu Tanimura) Date: Sun, 28 Apr 2024 14:57:14 +0900 Subject: [ESS] How to get working Rnw file name inside script Message-ID: <20240428145714.2edb8896de9b578c60faf0b2@gmail.com> Dear all, When using the Stangle() function within an Rnw file to insert an entire R code into an appendix of a document, it is necessary to provide the working Rnw file name. While manually entering the name is a viable option, it would be beneficial for me to implement it within a template for Rnw files. My question is how to get working Rnw file name inside script. This issue is not directly related to ESS, but the solution must be compatible with ESS and Emacs. Thank you -- Susumu Tanimura From m@rk|eed@2 @end|ng |rom gm@||@com Tue Apr 30 07:29:33 2024 From: m@rk|eed@2 @end|ng |rom gm@||@com (Mark Leeds) Date: Tue, 30 Apr 2024 01:29:33 -0400 Subject: [ESS] brace_linter Message-ID: Hi All: I use R and Emacs-ESS and I recently upgraded to R 4.4 and Ubuntu 23.04. Since the 2 upgrades ( yesterday ), when I emacs an R file, at the bottom of the ESS session it says ( if I toggle at certain places in the file ) "[brace_linter] Opening curly braces should never go on their own line and should always be followed by a new line. " So it seems like ESS is using linter to check my code but I don't want it to because it puts ugly green lines whereever I'm not following the rules it wants. And I'm definitely not an emacs-lisp or ess intermediate. A beginner at most. So thanks for your patience and help. I'm hoping that I can put something in my .emacs file to override this behavior ? Mark [[alternative HTML version deleted]] From rd|@z02 @end|ng |rom gm@||@com Tue Apr 30 12:27:51 2024 From: rd|@z02 @end|ng |rom gm@||@com (Ramon Diaz-Uriarte) Date: Tue, 30 Apr 2024 12:27:51 +0200 Subject: [ESS] brace_linter In-Reply-To: (Mark Leeds via's message of "Tue, 30 Apr 2024 01:29:33 -0400") References: Message-ID: <878r0vxhzs.fsf@gmail.com> Dear Mark, Out of the box ("emacs -Q" and then "M-x package-initialize") I think there is no linting. At least for me, linting happens when I enable flycheck or flymake, so maybe flycheck or flymake are being enabled in your emacs-init.el file for all prog-modes? You can check this by C-h v flymake-mode C-h v flycheck-mode in your R code buffer, to see which one of the above minor modes is active. If you (or your config) enable flycheck or flymake in an R buffer, then the variables `flycheck-lintr-linters` (for flycheck) and `ess-r-flymake-linters` (for flymake) control what linters are used. You could set whichever is relevant to your liking; for example, this keeps many linters quiet for me: (setq flycheck-lintr-linters "with_defaults(object_name_linter = NULL, camel_case_linter = NULL, snake_case_linter = NULL, indentation_linter = NULL)") But the most expedite procedure, if you do not need flycheck or flymake, could be to disable flycheck/flymake in ess-r-mode buffers. For example (add-hook 'ess-r-mode-hook (lambda() (flycheck-mode -1))) or (add-hook 'ess-r-mode-hook (lambda() (flymake-mode -1))) Note: I am assuming you are not using LSP; with LSP (at least with lsp-mode), things are slightly different. (And I do not use flymake, so the mentions to flymake above are guesses from analogy with flycheck). Best, R. On Tue, 30-April-2024, at 07:29:33, Mark Leeds via ESS-help wrote: > Hi All: I use R and Emacs-ESS and I recently upgraded to R 4.4 and Ubuntu > 23.04. > > Since the 2 upgrades ( yesterday ), when I emacs an R file, at the bottom > of the ESS session it says ( if I toggle at certain places in the file ) > > "[brace_linter] Opening curly braces should never go on their own line and > should always be followed by a new line. " > > So it seems like ESS is using linter to check my code but I don't want it > to because it puts ugly green lines whereever I'm not following the rules > it wants. And I'm definitely not an emacs-lisp or ess intermediate. A > beginner at most. So thanks for your patience and help. I'm hoping that I > can put something in my .emacs file to override this behavior ? > > > Mark > > [[alternative HTML version deleted]] > > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-31 Facultad de Medicina Universidad Aut?noma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdiaz02 at gmail.com r.diaz at uam.es ramon.diaz at iib.uam.es https://ligarto.org/rdiaz