Agent + cursor chat code generation doesn't work with Rmarkdown files

When editing or interacting Rmarkdown (.Rmd) files, where chunks are defined by


```{r chunk_title}
r code
''' (actual symbol is `, but using ' so it renders properly)

Both cursor chat and composer can’t render any of the involving .Rmd chunks code correctly. See example below (blanked out is some R code). This prevents the apply command from chat/agent from working properly.

Thanks for reporting this issue with R Markdown files. We’re aware of the formatting challenges with .Rmd files and code chunks, and we’re actively working on improving support for these in both Chat and Composer

For now, you might have better luck copying the code directly into a regular R file for Chat/Composer interactions, then moving it back to your .Rmd once you’re done

We should have better markdown support coming soon :+1: