[R] [External] Sweave

Naresh Gurbuxani n@re@h_gurbux@n| @end|ng |rom hotm@||@com
Sun Jun 26 17:23:54 CEST 2022

I am not allowed to install any software.  I can only use software supported by the department.

Sent from my iPhone

On Jun 26, 2022, at 11:01 AM, Richard M. Heiberger <rmh using temple.edu> wrote:

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

R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r-project.org%2Fposting-guide.html&data=05%7C01%7Crmh%40temple.edu%7C790db1e4cb394442029308da5777d450%7C716e81efb52244738e3110bd02ccf6e5%7C0%7C0%7C637918469424885370%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OGEzhoTKfEuAf6ZNLKNDBkw3a7fWrbtFjptGYyEHbxc%3D&reserved=0
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list