Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?
Kevin Zembower via ESS-help <[email protected]> Fri, 21 Apr 2023 14:58:59 +0000
| Newsgroups | gmane.emacs.ess.general |
|---|---|
| Message-ID | <01000187a4535e1a-3ba4c995-c8a0-4e25-bfad-c775343baf5e-000000@email.amazonses.com> |
Tyler, thanks for your response. I had found your website while
searching for a solution to my problem.
Currently, I have this in my .emacs.d/init.el file:
(setq load-path (append '("~/.emacs.d/polymode/"
"~/.emacs.d/polymode/modes") load-path))
(require 'poly-R)
(require 'poly-markdown)
(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
This has been working for me without error so far.
I commented out the last line and added this one:
(add-to-list 'auto-mode-alist
'("\\.[rR]md\\'" . poly-gfm+r-mode))
When I save my init.el file and restart Emacs with a .Rmd file, I get
this error message:
File mode specification error: (void-function poly-gfm+r-mode)
Package cl is deprecated
I'm using GNU Emacs 27.1, with rmarkdown 2.21. I'm not able to install
or find a poly-R or polymode package for this version of R
Any ideas what I'm doing wrong? Thanks for any help and guidance.
-Kevin
On 4/21/23 06:00, [email protected] wrote:
> Message: 2
> Date: Thu, 20 Apr 2023 13:55:19 -0400
> From: "Tyler Smith"<[email protected]>
> To: ESS-help<[email protected]>
> Subject: Re: [ESS] Fwd: Emacs, ESS and Rmarkdown: Is this the way
> compile is supposed to work?
> Message-ID:<[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> 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` when prompted, and the html will be generated and opened in a web browser.
>
> The tutorial walks you through the steps in more detail.
>
> Best,
>
> Tyler
>
> -- plantarum.ca
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help