Re: [ESS] how to organize init.el for both python and R/ESS? Your workflow?

2019-10-29 Thread Tyler Smith via ESS-help
On Tue, Oct 29, 2019, at 12:58 PM, Paul Johnson via ESS-help wrote: > > I put in a bunch of python bells and whistles and now ESS and R sessions > don't work the same. I've got interference from flymake and something has > entirely broken the "_" to create <-. This *shouldn't* happen - I have

Re: [ESS] how to organize init.el for both python and R/ESS? Your workflow?

2019-10-29 Thread Tyler Smith via ESS-help
On Tue, Oct 29, 2019, at 1:38 PM, Tyler Smith wrote: > > This might help if you want to do more troubleshooting: Sorry, sent that accidentally without the link: https://emacs.stackexchange.com/questions/28429/how-do-i-troubleshoot-emacs-problems/28430#28430 Tyler

Re: [ESS] R 4.0

2020-04-16 Thread Tyler Smith via ESS-help
I have some TeX-related stuff: r-mpost r-pmpost r-upmost I don't know what they do, I assume they were pulled in as part of texlive. Best, Tyler Alex Branham via ESS-help writes: On Thu 16 Apr 2020 at 16:20, Kasper Daniel Hansen via ESS-help wrote: I have just updated ESS using

Re: [ESS] how to deal with underscore in ggplot2 etc

2020-09-04 Thread Tyler Smith via ESS-help
This is a bit irritating, isn't it! You might not know that on ESS you can toggle between '<-' and '_' by pressing the underscore key twice. That's the quickest fix, and the one I use. I frequently find myself cursing to myself when I do this :) You could probably use a different key to insert

Re: [ESS] Best Practice for building R packages

2020-10-08 Thread Tyler Smith via ESS-help
and it would be great if we could pool our resources to improve | further. On 8 October 2020 at 09:38, Tyler Smith via ESS-help wrote: | I would also be interested in a webinar. Three, as they say, is a club -- so let's do this!! I am currently in a teaching term so a little tied up until year

Re: [ESS] Best Practice for building R packages

2020-10-08 Thread Tyler Smith via ESS-help
I only update my package once or twice a year, and haven't created a new one in a while. That said, I really like the ESS/devtools integration. I usually have to dig into the docs to remind myself about `C-c C-o C-o` to get a new roxygen template, but that's much less effort than refreshing

Re: [ESS] Emacs can find R-devel and R-newest, but not R-4.0.x

2020-11-25 Thread Tyler Smith via ESS-help
This was fixed in ESS 19.04. If you install/update ESS from Melpa, you should get a recent version that includes this fix. Best, Tyler -- plantarum.ca On Wed, Nov 25, 2020, at 11:53 AM, Marius Hofert via ESS-help wrote: > Hi, > > I used to be able to start a specific R version with M-x

Re: [ESS] Emacs can find R-devel and R-newest, but not R-4.0.x

2020-11-26 Thread Tyler Smith via ESS-help
by customizing `ess-r-runner-prefixes`, and in my old age I muddled all this together to give you bad advice. Best, Tyler Colin Baxter via ESS-help writes: Tyler Smith via ESS-help writes: > This was fixed in ESS 19.04. If you install/update ESS > from Melpa, > you s

Re: [ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?

2020-11-10 Thread Tyler Smith via ESS-help
Christopher W. Ryan via ESS-help writes: When I execute a line of R code, the R buffer opens up as expected, but it opens in a frame adjacent to the frame containing my source buffer. I would like it to open the R buffer as a frame below my source code, rather than adjacent to it. How can

Re: [ESS] [OT] Best Practices Emacs / ESS Mini-Webinars

2020-12-28 Thread Tyler Smith via ESS-help
I understand your skepticism! I could reframe my talk as "an overview of Blogdown" to more clearly articulate a single goal. Best, Tyler -- plantarum.ca On Mon, Dec 28, 2020, at 9:51 AM, Dirk Eddelbuettel via ESS-help wrote: > > On 28 December 2020 at 14:26, Sparapani, Rodney via ESS-help

Re: [ESS] [OT] Best Practices Emacs / ESS Mini-Webinars

2020-12-28 Thread Tyler Smith via ESS-help
Hi Dirk, I'd be happy to demo blogging with Emacs, RMarkdown, Blogdown, Hugo, ESS etc. I think a 5-10 minute demo with links to more detailed docs would be an engaging format. Best, Tyler -- plantarum.ca On Mon, Dec 28, 2020, at 9:08 AM, Dirk Eddelbuettel wrote: > > A few weeks ago a few

Re: [ESS] Polymode keymap error

2021-03-09 Thread Tyler Smith via ESS-help
I can't reproduce your problem. I tried opening `emacs -Q`, then running the following code. It works without any error. Is this enough to cause the error on your system? If not, there's something else in your config creating the issue: ``` (setq package-load-list '((use-package t)

Re: [ESS] Polymode keymap error

2021-03-09 Thread Tyler Smith via ESS-help
Yes, no errors. I had to include all the dependencies to get it to work: ``` (setq package-load-list '((use-package t) (bind-key t) (polymode t) (poly-R t) (poly-markdown t) (poly-noweb t) (markdown-mode t) (ess t)

Re: [ESS] Polymode keymap error

2021-03-08 Thread Tyler Smith via ESS-help
Can you show us your Emacs config, or at least the use-package expression you use for poly-mode? Best, Tyler John Haman via ESS-help writes: I'm having an issue with Poly-R or poly-markdown. When I start up my Emacs installation, I get a strange error about a keymap: Error (use-package):

Re: [ESS] Advice on setting up ESS to edit and knit Rmarkdown files

2021-09-19 Thread Tyler Smith via ESS-help
Hi, Polymode went through a major overhaul which I think was after 2014, so that blog post may be outdated. The overhaul made polymode much easier to use, such that there's very little config needed to get it set up. I wrote a tutorial describing my Rmd workflow in the past year for Dirk's ESS

Re: [ESS] [OT] Enabled a hook and no longer find which

2021-08-02 Thread Tyler Smith via ESS-help
On Mon, Aug 2, 2021, at 6:20 PM, Dirk Eddelbuettel via ESS-help wrote: > > But in one of the instrumented repos, as soon as I updated files src/ the > files GTAGS and GRTAGS. Can you reproduce the problem after starting Emacs via `emacs -Q`? That would confirm the problem is not in your Emacs

[ESS] ess-pdf-viewer-pref no longer used?

2021-07-29 Thread Tyler Smith via ESS-help
Hi, I have ess-pdf-viewer-pref set to "emacsclient". This used to have the effect of opening pdfs in Emacs. It doesn't work anymore, and pdfs opened from ESS (e.g. vignettes) are now opened in the default pdf program for my OS (which is Evince on my machine). Searching the code, the

Re: [ESS] [OT] Enabled a hook and no longer find which

2021-07-30 Thread Tyler Smith via ESS-help
On Fri, Jul 30, 2021, at 1:56 PM, Dirk Eddelbuettel via ESS-help wrote: > > tl;dr: I enabled an action 'on save' and I no longer find where :-/ Maybe check the values of before-save-hook and after-save-hook while visiting one of the files this problem applies to? You might find a function name

Re: [ESS] emacs-ess and the dreaded dotemacs file

2021-10-19 Thread Tyler Smith via ESS-help
I didn't receive your attachment, I think the mailing list drops them? The error you're getting indicates you have unbalanced parentheses (too many closing parentheses). That's an easy thing to do when copying and pasting code, and may be a side effect of some other issue. Best, Tyler --

Re: [ESS] Advice on setting up ESS to edit and knit Rmarkdown files

2021-10-01 Thread Tyler Smith via ESS-help
Hello Chris, Here is the Rmd tutorial I've been working on: https://github.com/ess-intro/presentation-rmarkdown/blob/master/presentation-rmarkdown.Rmd I've just updated it to incorporate some simplifications in configuration that I've been working on with the Polymode developer Vitalie

Re: [ESS] Advice on setting up ESS to edit and knit Rmarkdown files

2021-10-03 Thread Tyler Smith via ESS-help
Chris Evans writes: Just one thing that may chime with the ongoing discussion that my post seems to have seeded: I wouldn't know how to handle "You'll need new versions of poly-R (updated 29 September 2021) and markdown-mode (updated 6 January 2021)" and I never got my head around what

Re: [ESS] .Rdata not loading

2021-12-23 Thread Tyler Smith via ESS-help
Hi Rich, Have you recently updated R? The error message suggests the .Rdata file was created by a different version of R than the one you are currently running. Best, Tyler On Thu, Dec 23 2021, Rich Shepard via ESS-help wrote: I use R with emacs and ESS. Each time I finish with a session

Re: [ESS] .Rdata not loading

2021-12-23 Thread Tyler Smith via ESS-help
Hi Rich, ESS doesn't load data. All it does is pass commands to R. It looks like the command is getting successfully passed to R, so ESS is not likely the problem. You can confirm this by running the code in an R terminal (i.e., outside of Emacs). If the file still won't load, then you can

Re: [ESS] .Rdata not loading

2021-12-23 Thread Tyler Smith via ESS-help
That doesn't look like a problem with ESS - can you load .Rdata from R running in a terminal, outside of emacs? -- plantarum.ca On Thu, Dec 23, 2021, at 12:59 PM, Rich Shepard via ESS-help wrote: > On Thu, 23 Dec 2021, Tyler Smith wrote: > >> Have you recently updated R? The error message

Re: [ESS] github flavor

2022-02-13 Thread Tyler Smith via ESS-help
Hello Stephen, The function `poly-gfm+r-mode` is defined in the `poly-R` library. It needs to be loaded before you can call it. The following addition to your code should do it: ``` (require 'poly-R) (add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-gfm+r-mode)) ``` As long

[ESS] view documentation while developing a package

2022-02-07 Thread Tyler Smith via ESS-help
Hi, I am working on a package using devtools. I recall in the past that when I loaded a package via `devtools::load_all` (or now via `C-c C-w l`), I could preview the documentation as if it was a normally installed package. i.e, `C-c C-v`, or ?functionname would bring up a regular help window.

Re: [ESS] How to Duplicate Previous Functionality/Workflow

2023-09-23 Thread Tyler Smith via ESS-help
On Fri, Sep 22, 2023, at 2:04 AM, Stephen J. Eglen wrote: >> (You probably didn't do this, because Docview isn't great for >> pdfs. The now abandoned package pdf-tools was a great option for >> reading pdfs inside Emacs). > > just to add a couple of comments: > > 1. pdf-tools was forked about 1-2

Re: [ESS] How to Duplicate Previous Functionality/Workflow

2023-09-21 Thread Tyler Smith via ESS-help
On Thu, Sep 21, 2023, at 9:43 PM, Bassett Jr,Roland L via ESS-help wrote: > > 1. How can I customize the exporter to use my preferred PDF viewer > (evince) instead of DocView? I think the current default is for Emacs to open the exported file itself. To change this, you need to configure

Re: [ESS] How to Duplicate Previous Functionality/Workflow

2023-09-21 Thread Tyler Smith via ESS-help
On Thu, Sep 21, 2023, at 9:43 PM, Bassett Jr,Roland L via ESS-help wrote: > 2. Different topic, but how can I duplicate the functionality of the > "_" key to insert "<-" instead of just "_"? That feature is now called `ess-insert-assign`, and you need to bind it to the `_` key yourself. From

Re: [ESS] run R code upon starting each ESS session

2023-10-03 Thread Tyler Smith via ESS-help
On Tue, Oct 3, 2023, at 12:52 PM, Manuel Teodoro via ESS-help wrote: > Is there a way to run R code upon starting each ESS session? > Hi Manuel, ESS provides a hook you can use for this purpose. This is described in the manual: https://ess.r-project.org/Manual/ess.html#Customizing-startup To

Re: [ESS] [EXTERNAL] Re: How to Duplicate Previous Functionality/Workflow

2023-09-26 Thread Tyler Smith via ESS-help
Fax: 713-563-4242 > Email: rlbas...@mdanderson.org > > -----Original Message- > From: ESS-help On Behalf Of Tyler > Smith via ESS-help > Sent: Saturday, September 23, 2023 10:38 AM > To: Stephen J. Eglen > Cc: ESS-help > Subject: [EXTERNAL] Re: [ESS] How to Duplicate

Re: [ESS] why a release from time to time would be nice

2023-10-10 Thread Tyler Smith via ESS-help
Hi Stephen, Like Manuel, I also do my Rmd editing in Emacs, with ESS and polymode to handle most things, and a yasnippet to insert my YAML section. This covers my needs, but I'm not a very sophisticated user of YAML. What support would you like to see? Perhaps there are features you aren't

Re: [ESS] why a release from time to time would be nice

2023-10-12 Thread Tyler Smith via ESS-help
Hi Stephen, yasnippet allows you to insert modifiable yaml templates. You can define 'fields' that you want to modify, along with straight text that will be inserted verbatim. In my case, I enter the string 'yaml', hit the tab key, and the template is inserted. The cursor starts in the title

Re: [ESS] Emacs 28 and Sweave files

2022-09-22 Thread Tyler Smith via ESS-help
Hi, I just noticed that this question has an answer on emacs.stackexchange that might be helpful: https://emacs.stackexchange.com/questions/17063/how-to-setup-knitr-workflow-in-emacs/17065#17065 Tyler -- plantarum.ca On Sun, Sep 11, 2022, at 10:42 AM, Tyler Smith via ESS-help wrote: >

Re: [ESS] Fwd: Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?

2023-04-20 Thread Tyler Smith via ESS-help
Hi Kevin, You should be able to do what you want directly from the `.Rmd` buffer. I posted a tutorial here: https://plantarum.ca/2021/10/03/emacs-tutorial-rmarkdown/ With the right packages installed, from the .Rmd buffer you can export your file with `M-n e`, select `markdown` and `html`

Re: [ESS] Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?

2023-04-21 Thread Tyler Smith via ESS-help
Hi Kevin, If you have an older version of `poly-R`, the function `poly-gfm+r-mode` might not be present. This was added to `poly-R` dev in July 2021, I'm not sure exactly when it would have been added to the released version. If that's the case, updating to the current version of `poly-R`

Re: [ESS] emacs theme for polymode with noweb files

2023-12-05 Thread Tyler Smith via ESS-help
Hi Johannes, Tibbles add an extra layer of complexity, in that they apply their own colors to output, which doesn't necessarily follow the Emacs theme. I turn them off with: ``` options(crayon.enabled = FALSE) ``` See more discussion here: https://github.com/tidyverse/tibble/issues/395

Re: [ESS] emacs theme for polymode with noweb files

2023-12-04 Thread Tyler Smith via ESS-help
Hi, I use cyberpunk, which is pretty usable as-is. However, more important, I think, than the actual theme you use, is being able to tweak the styling of individual faces. Once you pick a theme that is reasonably close to what you want, if there are bits that you don't like, you can easily

Re: [ESS] ess, noweb and polymode

2023-11-15 Thread Tyler Smith via ESS-help
Hi Laurent, I haven't used `ess-goto-chunk` before, but it sounds quite useful. I think you could get something similar with the `swiper` package. You can install `swiper` via `package-list-packages. It requires the `ivy` package, which should get installed automatically when you install

Re: [ESS] ess, noweb and polymode

2023-11-17 Thread Tyler Smith via ESS-help
t-chunks: Symbol’s function definition is void: swiper > > > On 15/11/2023 21:13, Tyler Smith via ESS-help wrote: >> Hi Laurent, >> >> I haven't used `ess-goto-chunk` before, but it sounds quite useful. I think >> you could get something similar with the `swi

Re: [ESS] Displaying R plots within an Emacs buffer

2024-03-21 Thread Tyler Smith via ESS-help
That looks cool! I don't understand the code, but seeing it only took 20 lines, maybe it's something I could figure out. Great start! - tyler -- plantarum.ca On Thu, Mar 21, 2024, at 5:30 PM, Stephen J. Eglen via ESS-help wrote: > This is an itch I've had for ESS for probably at least 10 >