[R] Sweave

CALUM POLWART po|c1410 @end|ng |rom gm@||@com
Sun Jun 26 20:34:43 CEST 2022


I agree.

And not rerunning the code sounds like a Rmd notebook.

On Sun, 26 Jun 2022, 14:49 R. Mark Sharp via R-help, <r-help using r-project.org>
wrote:

> Naresh,
>
> First of all thanks for using reporoducible methods.
>
> I now use knitr instead of Sweave and the switch was fairly trivial. What
> you are wanting to do has been supported for a few years within RStudio. I
> found
> https://support.rstudio.com/hc/en-us/articles/200552336-Getting-Help-with-R
> <
> https://support.rstudio.com/hc/en-us/articles/200552336-Getting-Help-with-R>
> provided the following guidance with regard to get help with RStudio.
>
> The RStudio Community <http://community.rstudio.com/> is our discussion
> board for asking questions about R, Shiny, and package development.
>
> Mark
>
> R. Mark Sharp, Ph.D.
> Data Scientist and Biomedical Statistical Consultant
> 7526 Meadow Green St.
> San Antonio, TX 78251
> mobile: 210-218-2868
> rmsharp using me.com
>
>
>
>
>
>
>
>
>
>
>
> > On Jun 26, 2022, at 9:28 AM, Naresh Gurbuxani <
> naresh_gurbuxani using hotmail.com> wrote:
> >
> > I want to use Sweave, but incorporate some features from emacs org
> mode.
> >
> > When I first started writing reproducible documents, I used Sweave to
> combine LaTeX and R.  Four years ago, I started using org mode in emacs,
> which has a few additional features:
> >
> > 1.  In org mode, it is possible to see R-generated figures and tables in
> the running text.  In R Studio, I have to go to the plots window to look at
> the figures and R console to look at tables.  When reviewing the document,
> it interrupts the flow.
> >
> > 2.  In org mode document, it is possible to set a global variable so
> that, at the time of compilation, embedded code is not rerun.  org mode
> simply uses the results from the most recently run code and embeds them in
> the document.  This makes the compilation much faster.  In Sweave, it is
> possible to achieve this for individual code blocks by setting eval=FALSE.
> But in a long document with many code blocks, this method is time
> consuming.
> >
> > My new workplace does not support emacs.  I have gone back to using
> Sweave, but miss above features.  Is it possible to have these features in
> R Studio?
> >
> > Thanks,
> > Naresh
> > ______________________________________________
> > 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.
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list