emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: "Charles C. Berry" <ccberry@ucsd.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with R source blocks
Date: Fri, 12 Jun 2015 11:55:08 -1000	[thread overview]
Message-ID: <m2h9qch9s3.fsf@tsdye.com> (raw)
In-Reply-To: <alpine.OSX.2.11.1506121133200.446@charles-berrys-macbook.local> (Charles C. Berry's message of "Fri, 12 Jun 2015 11:50:09 -0700")

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                                                               
|           1                                                               
| > [1] "org_babel_R_eoe"                                                   
| > summary(bcal.df$label)                                                  
| 50-50-17-01088     Hapaiali`i          KAL-1        Makolea          KH2-2
|            100             60             82             69             72
|         KAL-26         KAL-27          KHO-1          KOL-2        MKI-122
|             79             72             65             63             54
|        MKI-123        MKI-124        MKI-125          KH1-3         KAL-24
|             62             69             65             65             57
|           Cook                                                            
|             41                                                            
`---------------------------------------------------------------------------

Note that the warnings removed 7 rows, which is the difference pointed
out by the error.

I don't know what position_stack might be, but it doesn't map directly
to the data frame I've constructed, which lacks an entry with 76 rows.

I'm guessing this brouhaha has to do with facet_wrap.

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.

Thanks for your help,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2015-06-12 21:55 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 [this message]
2015-06-12 22:33     ` Charles C. Berry
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

  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=m2h9qch9s3.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=ccberry@ucsd.edu \
    --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).