emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Feng Shu <tumashu@gmail.com>, orgmode <emacs-orgmode@gnu.org>
Subject: Re: ob-R, about :results value verbatim drawer
Date: Tue, 23 Sep 2014 23:55:03 -0400	[thread overview]
Message-ID: <87zjdpn04o.fsf@gmail.com> (raw)
In-Reply-To: <87a95pbuvs.fsf@news.tumashu-localhost.org>

Hi Feng,

2014ko irailak 23an, Feng Shu-ek idatzi zuen:
> but when I add a #+PROPERTY, it show error like below, how to deal with
> it ?  thanks ...
> 
>       #+PROPERTY: header-args:R :colnames yes :rownames no :exports both
>       #+BEGIN_SRC R :results value verbatim drawer
>       data <- list(a="[[./test1.org]]",b="[[./test2.org]]",c="[[./test3.org]]")
>       c(data$a,data$b,data$c)
>       #+END_SRC
> 
> 
>       executing R code block...
>       Wrote /tmp/babel-1984743i/ob-input-198472lB
>       org-babel-R-evaluate-external-process: Wrong type argument: listp, "x
>       [[./test1.org]]
>       [[./test2.org]]
>       [[./test3.org]]
>       "

The simple answer is don’t add the #+property line.  In particular, the
:colnames yes setting doesn’t play well with your code block.  If you
must have the #+property line for other reasons, override the global
setting of :colnames yes with :colnames no on the source block.

-- 
Aaron Ecay

  reply	other threads:[~2014-09-24  4:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24  2:43 ob-R, about :results value verbatim drawer Feng Shu
2014-09-24  3:55 ` Aaron Ecay [this message]
2014-09-24  7:52   ` Header Arguments of Code Blocks - problems and challenges Rainer M Krug
2014-09-24  7:52   ` ob-R, about :results value verbatim drawer Rainer M Krug
2014-09-26  0:13     ` Grant Rettke
2014-09-26  7:54       ` Rainer M Krug

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=87zjdpn04o.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tumashu@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).