Re: [R] Code editor for writing R code

2023-11-30 Thread Dr Eberhard W Lisse
Sublime Text.

On all platforms.
On 29/11/2023 17:57, 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@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.


Re: [R] Code editor for writing R code

2023-11-30 Thread Ivan Krylov
В Wed, 29 Nov 2023 21:27:37 +0530
Christofer Bogaso  пишет:

> Does there exist any Code editor for R, that allows me to write Latex
> in comments?

While I cannot guarantee that you'll like it, may I suggest GNU Emacs?
Its R support is provided by the ESS package
, and there's the 'texfrag' package
 for rendering LaTeX math from
the comments.

In many ways, VS Code is the continuation of the Emacs idea of an
infinitely configurable programmer's text editor [*], although you will
immediately notice major differences in the design decisions taken by
their respective developers. In particular, Emacs key-bindings predate
not only the IBM CUA standard which inspired today's user interfaces,
but many of the mailing list members themselves.

-- 
Best regards,
Ivan

[*] https://en.wikipedia.org/wiki/Zawinski's_law#Zawinski's_Law

__
R-help@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Duncan Murdoch

On 29/11/2023 1:29 p.m., Eric Berger wrote:

Bert,
Posit (formerly RStudio) has moved from RMarkdown to Quarto. They
still support RMarkdown but major new features will be in Quarto. For
new users a better choice would be Quarto.
See https://quarto.org/docs/faq/rmarkdown.html


I'm not sure about that advice.  Quarto has some bad design choices.

For example, these lines: 
https://github.com/quarto-dev/quarto-cli/blob/3c9950947871ceafa54de909b15077cd54e27efe/src/resources/rmd/patch.R#L159-L184 
 have them faking S3 dispatch, but doing it really badly.  They worked 
around an issue I reported last year 
(https://github.com/quarto-dev/quarto-cli/issues/1800), but with a 
design like that, there will be other issues.




Secondly, the OP stated he was using the VS-Code IDE, so there is no
reason to point him to the Posit/RStudio IDE for this functionality
which VS-Code supports very well (as I noted in my response.)


The original question did ask for recommendations for a different editor.

Duncan Murdoch



Best,
Eric

On Wed, Nov 29, 2023 at 6:55 PM Christofer Bogaso
 wrote:


Hi Sergei,

Where can I find TeX Comments extension in VS Code?

On Wed, Nov 29, 2023 at 9:34 PM Sergei Ko  wrote:


TeX Comments extension in VS Code




Sent from my phone


 Original message 
From: Christofer Bogaso 
Date: Wed, 29 Nov 2023, 15:57
To: r-help 
Subject: [R] Code editor for writing R code

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@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@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@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@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Jeff Newmiller via R-help
Quarto is built on top of RMarkdown when R is used, so RMarkdown isn't going 
anywhere soon. Don't spread unnecessary FUD.

Quarto is well-supported in VSCode, though.

And reply to the right branch of the thread... Bert is not in the thread below.

On November 29, 2023 10:29:03 AM PST, Eric Berger  wrote:
>Bert,
>Posit (formerly RStudio) has moved from RMarkdown to Quarto. They
>still support RMarkdown but major new features will be in Quarto. For
>new users a better choice would be Quarto.
>See https://quarto.org/docs/faq/rmarkdown.html
>
>Secondly, the OP stated he was using the VS-Code IDE, so there is no
>reason to point him to the Posit/RStudio IDE for this functionality
>which VS-Code supports very well (as I noted in my response.)
>
>Best,
>Eric
>
>On Wed, Nov 29, 2023 at 6:55 PM Christofer Bogaso
> wrote:
>>
>> Hi Sergei,
>>
>> Where can I find TeX Comments extension in VS Code?
>>
>> On Wed, Nov 29, 2023 at 9:34 PM Sergei Ko  wrote:
>> >
>> > TeX Comments extension in VS Code
>> >
>> >
>> >
>> >
>> > Sent from my phone
>> >
>> >
>> >  Original message 
>> > From: Christofer Bogaso 
>> > Date: Wed, 29 Nov 2023, 15:57
>> > To: r-help 
>> > Subject: [R] Code editor for writing R code
>> >
>> > 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@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@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@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.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Eric Berger
Bert,
Posit (formerly RStudio) has moved from RMarkdown to Quarto. They
still support RMarkdown but major new features will be in Quarto. For
new users a better choice would be Quarto.
See https://quarto.org/docs/faq/rmarkdown.html

Secondly, the OP stated he was using the VS-Code IDE, so there is no
reason to point him to the Posit/RStudio IDE for this functionality
which VS-Code supports very well (as I noted in my response.)

Best,
Eric

On Wed, Nov 29, 2023 at 6:55 PM Christofer Bogaso
 wrote:
>
> Hi Sergei,
>
> Where can I find TeX Comments extension in VS Code?
>
> On Wed, Nov 29, 2023 at 9:34 PM Sergei Ko  wrote:
> >
> > TeX Comments extension in VS Code
> >
> >
> >
> >
> > Sent from my phone
> >
> >
> >  Original message ----
> > From: Christofer Bogaso 
> > Date: Wed, 29 Nov 2023, 15:57
> > To: r-help 
> > Subject: [R] Code editor for writing R code
> >
> > 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@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@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@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Christofer Bogaso
Hi Sergei,

Where can I find TeX Comments extension in VS Code?

On Wed, Nov 29, 2023 at 9:34 PM Sergei Ko  wrote:
>
> TeX Comments extension in VS Code
>
>
>
>
> Sent from my phone
>
>
>  Original message 
> From: Christofer Bogaso 
> Date: Wed, 29 Nov 2023, 15:57
> To: r-help 
> Subject: [R] Code editor for writing R code
>
> 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@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@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Bert Gunter
This might be of use to you:

https://everyday.codes/tutorials/how-to-use-latex-in-rmarkdown/

-- Bert

On Wed, Nov 29, 2023 at 8:21 AM Bert Gunter  wrote:
>
> I believe RMarkdown can use and render latex comments. RStudio/Posix
> provides ide extensions (e.g. R Notebooks) that seem to do what you
> want, but I have no experience with them. As Ben suggested, there are
> likely others, depending on exactly what you want to do.
>
> -- Bert
>
> On Wed, Nov 29, 2023 at 7:58 AM 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@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@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Bert Gunter
I believe RMarkdown can use and render latex comments. RStudio/Posix
provides ide extensions (e.g. R Notebooks) that seem to do what you
want, but I have no experience with them. As Ben suggested, there are
likely others, depending on exactly what you want to do.

-- Bert

On Wed, Nov 29, 2023 at 7:58 AM 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@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@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Eric Berger
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  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@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@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@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.


Re: [R] Code editor for writing R code

2023-11-29 Thread Ben Bolker




  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@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@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] Code editor for writing R code

2023-11-29 Thread Christofer Bogaso
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@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.