From: "Charles C. Berry" <ccberry@ucsd.edu>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with R source blocks
Date: Fri, 12 Jun 2015 15:33:48 -0700 [thread overview]
Message-ID: <alpine.OSX.2.11.1506121515430.1626@charles-berrys-macbook.local> (raw)
In-Reply-To: <m2h9qch9s3.fsf@tsdye.com>
On Fri, 12 Jun 2015, Thomas S. Dye wrote:
> Hi Chuck,
>
> "Charles C. Berry" <ccberry@ucsd.edu> writes:
>
>> The error messages are coming from R. cbind will say:
>>
>> : Error in data.frame(..., check.names = FALSE) :
>> : arguments imply differing number of rows: 2, 3
>
> I think the problem is in ggplot2, rather than my for loop:
>
> ,---------------------------------------------------------------------------
> | [1] "ERROR : arguments imply differing number of rows: 76, 69"
> | Warning messages:
> | 1: In loop_apply(n, do.ply) :
> | Removed 3 rows containing missing values (position_stack).
> | 2: In loop_apply(n, do.ply) :
> | Removed 1 rows containing missing values (position_stack).
> | 3: In loop_apply(n, do.ply) :
> | Removed 3 rows containing missing values (position_stack).
> | null device
Those messages come from plyr, which ggplot2 uses.
[snip]
>
> In any case, Org Babel seems to be behaving correctly.
>
> I've had this code around for years and have run it without problem many
> hundreds of times.
>
> Is ess a potential source of the problem? I upgraded that recently.
>
I don't think so.
I'd rewrite the src block with
save.image(file="setup-for-ggplot.RData")
before the graphics commands.
Restart emacs and execute the src block.
Start a fresh R session, then type
load("setup-for-ggplot.RData")
and type/paste in all the graphics commands and see what happens. If the
error repeats and you can verify that each object is as you expected it to
be, then this is not an Org mode problem.
HTH,
Chuck
next prev parent reply other threads:[~2015-06-12 22:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 23:12 Problem with R source blocks Thomas S. Dye
2015-06-12 18:50 ` Charles C. Berry
2015-06-12 21:55 ` Thomas S. Dye
2015-06-12 22:33 ` Charles C. Berry [this message]
2015-06-12 23:54 ` Thomas S. Dye
2015-06-13 0:26 ` Thomas S. Dye
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.11.1506121515430.1626@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.