[R] Code editor for writing R code

Eric Berger er|cjberger @end|ng |rom gm@||@com
Wed Nov 29 17:21:01 CET 2023


Another direction would be to replace your R script (.R file) with a
Quarto document (.qmd file).
VS-code has good support for Quarto and you could intersperse your
Latex with R chunks.


On Wed, Nov 29, 2023 at 6:15 PM Ben Bolker <bbolker using gmail.com> wrote:
>
>
>
>    Presumably there's nothing stopping you *writing* LaTeX in comments
> -- do you want a code editor that will render and display the LaTeX as
> you write? (Or am I misunderstanding something?)
>
>    Does anyone do classic literate programming *sensu* Knuth any more?
> https://rpubs.com/bbolker/3153
> https://cran.r-project.org/web/packages/noweb/vignettes/noweb.pdf
>
>
> On 2023-11-29 10:57 a.m., Christofer Bogaso wrote:
> > Hi,
> >
> > Currently I use VS-Code to write codes in R. While it is very good, it
> > does not allow me to write Latex expressions in comments, which I am
> > willing to have to write corresponding mathematical expressions as
> > comments in my code files.
> >
> > Does there exist any Code editor for R, that allows me to write Latex
> > in comments?
> >
> > Any information will be appreciated.
> >
> > Thanks,
> >
> > ______________________________________________
> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list