From: Jeremie Juste <jeremiejuste@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: R terminal output does not match src block output due to ">" character in results
Date: Sun, 16 Jan 2022 14:30:14 +0100 [thread overview]
Message-ID: <877dazu7tl.fsf@gmail.com> (raw)
In-Reply-To: <CA+M2ft-TFHa7cy43-1-WpFr6weYp2ZU0uwiVoUpuo-1kTR93=Q@mail.gmail.com> (John Hendy's message of "Tue, 11 Jan 2022 17:30:41 -0600")
Hello John,
As promised, I'm coming back about the formatting of NA_characters_.
In org-mode 9.5 NA_characters_ are not printed anymore with :results
value. See example 2 and 3 for more details. Please let me know if
this post solves your issues. Woudl updating to 9.5 be an option for
you?
Best regards,
Jeremie
#+BEGIN_SRC elisp
(org-version)
#+END_SRC
#+RESULTS:
: 9.5
#+BEGIN_SRC elisp
(emacs-version)
#+end_src
#+RESULTS:
: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24)
: of 2021-11-26
* Example 1
#+BEGIN_SRC R :results output
data.frame(abc=NA_character_)
#+end_src
#+RESULTS:
: abc
: 1 <NA>
* Example 2
#+BEGIN_SRC R :results value
a <- data.frame(column1=NA_character_,column2=1:10)
#+end_src
#+RESULTS:
| | 1 |
| | 2 |
| | 3 |
| | 4 |
| | 5 |
| | 6 |
| | 7 |
| | 8 |
| | 9 |
| | 10 |
* Example 3
#+BEGIN_SRC R :results value :colnames yes
library(RSQLite)
con <- dbConnect(RSQLite::SQLite(), ":memory:")
dbWriteTable(con, "df", data.frame(column1=NA_character_,column2=1:10))
dbGetQuery(con, "SELECT * FROM df")
#+end_src
#+RESULTS:
| column1 | column2 |
|---------+---------|
| | 1 |
| | 2 |
| | 3 |
| | 4 |
| | 5 |
| | 6 |
| | 7 |
| | 8 |
| | 9 |
| | 10 |
next prev parent reply other threads:[~2022-01-16 13:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 22:42 R terminal output does not match src block output due to ">" character in results John Hendy
2022-01-11 23:30 ` John Hendy
2022-01-16 13:30 ` Jeremie Juste [this message]
2022-01-17 0:48 ` John Hendy
2022-01-24 4:49 ` Jack Kamm
2022-01-25 17:46 ` John Hendy
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=877dazu7tl.fsf@gmail.com \
--to=jeremiejuste@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.com \
/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).