Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
g]]") print("[[./hist2.png]]") #+end_src thanks! On Fri, Jun 7, 2024 at 11:18 AM Ihor Radchenko wrote: > Giuseppe Pagnoni writes: > > > Sorry, I just sent you the reply that was meant for Berry's advice :-). > > Your suggestion also looks very usef

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
Same... no file gets written... On Fri, Jun 7, 2024 at 11:18 AM Ihor Radchenko wrote: > Giuseppe Pagnoni writes: > > > Sorry, I just sent you the reply that was meant for Berry's advice :-). > > Your suggestion also looks very useful, but somehow the png files do no

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
pe to jpeg). Any idea why? thanks again giuseppe On Wed, Jun 5, 2024 at 8:35 PM Ihor Radchenko wrote: > Giuseppe Pagnoni writes: > > > #+begin_src R :file example.png :results output graphics file > > x <- rnorm(100) > > print(mean(x)) > > hist(x) >

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-07 Thread Giuseppe Pagnoni
Many thanks. Since I am using this within an org-mode notebook, I think the :session trick works well enough for me. best giuseppe On Wed, Jun 5, 2024 at 8:35 PM Ihor Radchenko wrote: > Giuseppe Pagnoni writes: > > > #+begin_src R :file example.png :results output graphics

Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-05 Thread Giuseppe Pagnoni
n_src R :file example.png :results output graphics file x <- rnorm(100) print(mean(x)) hist(x) hist(x^2) #+end_src Here, only the last plot gets displayed. Is it not possible to display more than 1 plot? many thanks in advance for any help giuseppe -- Giuseppe Pagnoni Dip. Scienze Biomedich

Re: [O] Using double square brackets literally (escaping link conversion) in org-mode

2012-09-05 Thread Giuseppe Pagnoni
good tip, thanks! giuseppe

Re: [O] Using double square brackets literally (escaping link conversion) in org-mode

2012-09-04 Thread Giuseppe Pagnoni
have no idea why you need to do that in order to have org-mode recognize that it should use a code syntax, but it works. thanks for all your help! best giuseppe -- Giuseppe Pagnoni Dip. Scienze Biomediche, Metaboliche e Neuroscienze Sezione Fisiologia e Neuroscienze Univ. di Modena e Reggio E

Re: [O] Using double square brackets literally (escaping link conversion) in org-mode

2012-09-04 Thread Giuseppe Pagnoni
actually preserved (and the text printed verbatim) when *exporting* to formats such as LaTeX or HTML, but they are *not* displayed verbatim within the Emacs GUI. Unless I am missing something obvious here... thanks again giuseppe -- Giuseppe Pagnoni Dip. Scienze Biomediche, Metaboliche e Neuroscienze

[O] Using double square brackets literally (escaping link conversion) in org-mode

2012-09-04 Thread Giuseppe Pagnoni
Hi all, I use org-mode for taking notes and I often need to jot down code examples. In the language R, subscription is often done with double square brackets (for instance, I can extract the 2nd element of a `list' object x with the code: x[[2]]). Now, I haven't been able to write such example c