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
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 at me.com> On Jun 26, 2022, at 9:28 AM, Naresh Gurbuxani <naresh_gurbuxani at 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 at 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]]
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 at r-project.org> on behalf of Naresh Gurbuxani <naresh_gurbuxani at hotmail.com> Sent: Sunday, June 26, 2022 9:28:41 AM To: r-help at r-project.org <r-help at 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 ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=05%7C01%7Crmh%40temple.edu%7C790db1e4cb394442029308da5777d450%7C716e81efb52244738e3110bd02ccf6e5%7C0%7C0%7C637918469424885370%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5cbd4Ep%2FTJAhsJiu%2BcdFuRpjjMwZTqdqr0idmBSO0qw%3D&reserved=0 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]]