[R] Sweave

Enrico Schumann e@ @end|ng |rom enr|co@chum@nn@net
Sun Jun 26 18:12:44 CEST 2022


On Sun, 26 Jun 2022, Richard M. Heiberger writes:

> dies .not support emacs. mean you can install it yourself? or does it mean you are prohibited from using it?
> if you install it on your own machine then you can continue working as before.

An additional note: at least in the past, you did
not need to actually install GNU Emacs on Windows.  You
would need to download it, and then could start it via
some exe file.  Nothing was actually installed in that
mode, e.g. no entry was made to the registry, and no
admin rights were needed.

kind regards
    Enrico

> ________________________________
> From: R-help <r-help-bounces using r-project.org> on behalf of Naresh Gurbuxani <naresh_gurbuxani using hotmail.com>
> Sent: Sunday, June 26, 2022 9:28:41 AM
> To: r-help using r-project.org <r-help using R-project.org>
> Subject: [External] [R] Sweave
>
> 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

[...]


-- 
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net



More information about the R-help mailing list