Re: R code block with Cairo graphics

2025-04-16 Thread Naresh Gurbuxani
header and have the code output graphics file link? Also, what are valid inputs for :antialias ? > On Apr 16, 2025, at 8:45 AM, Christian Moe wrote: > > Try this: > > :type cairo > > See: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html > > You

R code block with Cairo graphics

2025-04-16 Thread Naresh Gurbuxani
How can I set up a code block which uses R code to output a cairo graphics file? In below example, code block for simple R graph uses header argument to input filename. Is it possible to create a similar set up when cairo is used? When exported to pdf, my graphs look similar with and without c

Re: [PATCH] Re: Q: Documentation question on beamer and org

2025-02-13 Thread Naresh Gurbuxani
https://github.com/fniessen/refcard-org-beamer Sent from my iPhone On Feb 13, 2025, at 6:29 PM, David Masterson wrote: Leo Butler writes: On Thu, Feb 13 2025, Sébastien Gendre wrote: David Masterson writes: Forgive the repeat -- I didn't s

Execute R code block in existing *R* session

2024-12-05 Thread Naresh Gurbuxani
With an inferior R process already running, executing an R code block (C-c C-c) prompts for a directory for new R session. Is it possible to tell org-mode to execute the code block in already running R session? Sent from my iPhone

Re: Orgmode and Beamer

2024-10-28 Thread Naresh Gurbuxani
Comment out one of these: #+latex_class: article #+latex_class: beamer Sent from my iPhone > On Oct 28, 2024, at 6:32 PM, David Masterson > wrote: > > Does anyone have a recommendation on how to structure an Org document such > that it can be exported to either Latex or Beamer? Suppose yo

Archive done tasks and preserve tree structure

2024-05-19 Thread Naresh Gurbuxani
In my task list, items are grouped under various headings.  For example: * Reading ** TODO Book 1 ** TODO Book 2 * Programming ** TODO assignment 1 ** TODO assignment 2 When an item is DONE, I want to archive it such that archive file preserves tree structure.  So when Book 1 above is DON

Org agenda view does not display correctly

2024-02-26 Thread Naresh Gurbuxani
Until recently, my org agenda view displayed correctly.  Now M-x org-agenda a display begins with question marks.  Is there a simple way to diagnose and fix this problem?  I am using org mode version 9.6.6 (default) in emacs version 29.1 on mac. Thanks, Naresh My org agenda display: Week-ag

Re: Emacs and org mode in aws

2023-04-16 Thread Naresh Gurbuxani
I understand that, in terminal, images are not displayed in emacs. Are people using other ways to connect to aws where they can see images in emacs? Sent from my iPhone > On Apr 16, 2023, at 7:01 AM, Ihor Radchenko wrote: > > Naresh Gurbuxani writes: > >> In my Amazon W

Emacs and org mode in aws

2023-04-15 Thread Naresh Gurbuxani
In my Amazon Web Service account, I can launch emacs from the terminal. Nearly all emacs features work well. But I miss the ability to view graphs created by code blocks in org mode. Have other members found a solution? Thanks, Naresh

Re: R code blocks in org version 9.5

2022-10-19 Thread Naresh Gurbuxani
It seems that org 9.5 has simplified header arguments for R code blocks that use grid graphics. Org 9.4 requires :results output graphics file Org 9.5 requires :results output file Do other users find the same change? Sent from my iPhone > On Oct 19, 2022, at 8:59 AM, Naresh Gurbux

Re: R code blocks in org version 9.5

2022-10-19 Thread Naresh Gurbuxani
. Is there an easier solution? Naresh Sent from my iPhone > On Oct 18, 2022, at 11:14 PM, William Denton wrote: > > On 18 October 2022, Naresh Gurbuxani wrote: > >> Recently I started using org version 9.5 with my init.el that worked well >> for org 9.4 >>

R code blocks in org version 9.5

2022-10-18 Thread Naresh Gurbuxani
Recently I started using org version 9.5 with my init.el that worked well for org 9.4 In org 9.5, I can run stand-alone R code blocks. But when I try to run them in a session, emacs hangs. Have you seen this problem? Is there a solution? Thanks, Naresh Sent from my iPhone

Re: Efficiently reuse code in org babel with R

2022-07-07 Thread Naresh Gurbuxani
Thanks for providing a detailed solution. I also learned from other responses. Sent from my iPhone > On Jul 7, 2022, at 4:42 AM, Jeremie Juste wrote: > > Hello Naresh, > > Many thanks for sharing. > If I'm looking for efficiency, I tend not to use noweb and use an R > session instead. > >

Efficiently reuse code in org babel with R

2022-07-06 Thread Naresh Gurbuxani
I want to source some data from databases, then use this data in various blocks. I am looking for the most efficient way to achieve this. In below blocks, is the code in block ``connection'' executed thrice (economy of code but no saving of time) or is it only executed once then used twice? I

Re: org-babal-R-command

2022-06-28 Thread Naresh Gurbuxani
It works! You made my day. Thanks, Naresh Sent from my iPhone > On Jun 28, 2022, at 2:40 PM, Bruno Barbier wrote: > > Naresh Gurbuxani writes: > >> In my windows computer, R is installed at c:/Program Files/Microsoft/R >> Open/R-3.5.1/bin >> >> Notic

org-babal-R-command

2022-06-28 Thread Naresh Gurbuxani
In my windows computer, R is installed at c:/Program Files/Microsoft/R Open/R-3.5.1/bin Notice two spaces: “Program Files” and “R Open” How can I set the variable org-babel-R-command? I tried (setq org-babel-R-command “c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe —slave —no-save”) But the s