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

Kevin Zembower via ESS-help <[email protected]> Sun, 23 Apr 2023 17:15:52 +0000
Newsgroups gmane.emacs.ess.general
Message-ID <01000187af1d65fd-756b65a1-1444-41ab-8e22-4ddd69696ad8-000000@email.amazonses.com>
Tyler, thanks again for your help.

I'm sorry to burden you with my problems, but I'm stuck again.

I think I have everything installed and up to date. Here's an excerpt 
from M-x package-list-packages:
   markdown-mode      20220212.728  installed             Major mode for 
Markdown-formatted text
   poly-R             20230416.1454 installed             Various 
polymodes for R language
   poly-markdown      20230202.1210 installed             Polymode for 
markdown-mode
   poly-noweb         20200316.1315 installed             Polymode for noweb
   polymode           20230317.1218 installed             Extensible 
framework for multiple major modes

With the exception of poly-noweb, they're all 2023 packages.

Yet, when I open an *.Rmd file, I get this in the Messages buffer:

File mode specification error: (error Autoloading file 
/home/kevin/.emacs.d/polymode/modes/poly-R.el failed to define function 
poly-gfm+r-mode)
Package cl is deprecated

I then added your alternative define-polymode section, and the error 
about poly-gfm+r-mode went away, but I still have this message in the 
Messages buffer when I start Emacs with an *.Rmd file:

File mode specification error: (cl-no-applicable-method clone nil)
Package cl is deprecated

I can't find a reference to a 'cl' package in my init.el. In addition, 
the *.Rmd file is in Fundamental mode, and not ESS or poly-R mode.

When I try to manually invoke the poly mode, with 'M-x poly-gfm+r-mode', 
I get the message:

cl-no-applicable-method: No applicable method: clone, nil

Any ideas what's going on with my system? I'm so worried I'm just making 
a hash of things with these changes.

Thanks for any advice or guidance.

-Kevin

On 4/22/23 06:00, [email protected] wrote:
> ------------------------------
> 
> Message: 2
> Date: Fri, 21 Apr 2023 11:09:43 -0400
> From: "Tyler Smith"<[email protected]>
> To: ESS-help<[email protected]>
> Subject: Re: [ESS] 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,
> 
> 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` should fix the problem.
> 
> Alternatively, you need the following code evaluated*after*  `(require 'poly-R)` and*before*  `(add-to-list ...)`:
> 
> ```
> (define-polymode poly-gfm+r-mode poly-markdown+r-mode
>    :lighter " PM-Rmd(gfm)"
>    :hostmode 'poly-gfm-hostmode)
> ```
> 
> But that really shouldn't be necessary.
> 
> Best,
> 
> Tyler
> -- plantarum.ca


______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help