emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: Dylan Schwilk <dylan@schwilk.org>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org babel R source blocks :results output with :session includes extra blank lines
Date: Tue, 28 Aug 2018 16:57:03 +0000	[thread overview]
Message-ID: <14090386-F521-4CCF-9AAD-046C67A2FD34@ucsd.edu> (raw)
In-Reply-To: <359545e6-bb72-2613-124d-696142f33fb4@schwilk.org>

Cannot confirm. See inline.

> On Aug 28, 2018, at 7:48 AM, Dylan Schwilk <dylan@schwilk.org> wrote:
> 
> Hello,
> 
> I recently have run into a change in output from my R language source code blocks.
> 
> I have found that when I include :session to the source block header, I now get
> extra blank lines in the #+results. This has broken my lecture slides for my
> courses with too much extra blank space.
> 
> for example:
> 
> #+begin_src R :results output :exports both :session
> 1 + 2
> 3 + 4
> print("the end")
> #+end_src
> 
> #+results:
> : [1] 3
> :
> : [1] 7
> :
> : [1] "the end"
> 

With the :session arg I get the output as you show it below.

This was with master on commit f79545 from last month and on today's master (commit 38a8901).

> 
> I do not have this issue when I omit the :session header argument, eg:
> 
> #+begin_src R :results output :exports both
> 1 + 2
> 3 + 4
> print("the end")
> #+end_src
> 
> #+results:
> : [1] 3
> : [1] 7
> : [1] "the end"
> 
> 


FWIW, my R session looks like this


--8<---------------cut here---------------start------------->8---
[...]
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> setwd('/Users/cberry/')
> 1 + 2
3 + 4
print("the end")
'org_babel_R_eoe'
[1] 3
> [1] 7
> 
[1] "the end"
> [1] "org_babel_R_eoe"
--8<---------------cut here---------------end--------------->8---

If this is what your session looks like, then we need to dig deeper into ob-R.

HTH,

Chuck

  reply	other threads:[~2018-08-28 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-28 14:48 org babel R source blocks :results output with :session includes extra blank lines Dylan Schwilk
2018-08-28 16:57 ` Berry, Charles [this message]
2018-08-28 22:24   ` Dylan Schwilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14090386-F521-4CCF-9AAD-046C67A2FD34@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=dylan@schwilk.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).