From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +HUTGuPUrl6APgAA0tVLHw (envelope-from ) for ; Sun, 03 May 2020 14:27:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QJqDBu3Url5IfAAAB5/wlQ (envelope-from ) for ; Sun, 03 May 2020 14:27:57 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E4A6D9441AB for ; Sun, 3 May 2020 14:27:45 +0000 (UTC) Received: from localhost ([::1]:35558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVFaq-0004g0-N6 for larch@yhetil.org; Sun, 03 May 2020 10:27:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVFaL-0004eZ-FL for emacs-orgmode@gnu.org; Sun, 03 May 2020 10:27:13 -0400 Received: from hiwela.pair.com ([209.68.5.201]:16003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVFaK-0004ON-Fw for emacs-orgmode@gnu.org; Sun, 03 May 2020 10:27:13 -0400 Received: from hiwela.pair.com (localhost [127.0.0.1]) by hiwela.pair.com (Postfix) with ESMTP id 4C6189804C9 for ; Sun, 3 May 2020 10:27:05 -0400 (EDT) Received: from minshall-entroware-apollo.cliq.com (unknown [70.134.64.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hiwela.pair.com (Postfix) with ESMTPSA id 26ABF8F0849 for ; Sun, 3 May 2020 10:27:05 -0400 (EDT) Received: from apollo2.minshall.org (localhost [IPv6:::1]) by minshall-entroware-apollo.cliq.com (Postfix) with ESMTP id 675FF60D62 for ; Sun, 3 May 2020 07:27:04 -0700 (PDT) From: Greg Minshall To: emacs-orgmode@gnu.org Subject: Bug: Code block returned no value [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)] X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 03 May 2020 07:27:04 -0700 Message-ID: <2449663.1588516024@apollo2.minshall.org> Received-SPF: softfail client-ip=209.68.5.201; envelope-from=minshall@umich.edu; helo=hiwela.pair.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/03 10:27:05 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_SOFTFAIL=0.665 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=umich.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-0.91 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49371998932359]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.14), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[minshall@umich.edu,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[umich.edu : SPF not aligned (relaxed), No valid DKIM,none] X-TUID: isazYpmIOpCD hi. i'm running R code from an org mode file. i was having a problem where a code block that *was* returning a value result was not returning the results into the buffer. (after long head-scratching) this appears to be because my code was returning more lines of results than org-table-convert-region-max-lines. but, i was *not* seeing any error message, nothing to indicate to me why i was getting no results. in the test program below, when trying to return more than 1000 lines, one sees, in the echo area, "Code block returned no value". if you go to *Messages*, there you can see an error message. i think somehow org/babel should make sure the user sees what limitation s/he is running into. the test block below, 'FailsIfnGT999', if run with n <=3D 999, will return a table of that many lines. if run with n > 999, (for me, invoking "emacs -Q"), you will get empty results, with the message "Code block returned no value" (which is false, but the interactions between R code, R, ess, babel, org, etc., are a bit mysterious to the semi-initiated) in the echo area. (not invoking via 'emacs -Q', i am running ---- Package: Org mode version 9.3.6 (9.3.6-43-gc77edd-elpa @ /home/minshall/.emacs.d/elpa/org-20200413/) ---- but the results are the same; i'm submitting the bug report from 9.3.6, but edited the Subject line with the header from an attempt to submit from 9.1.9.) cheers, Greg >>>> run this first to get R enabled #+BEGIN_SRC emacs-lisp :results none (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) #+END_SRC then, run =3DFailsIfnGT999=3D first with =3Dn=3D set to =3D100=3D. notice = there are results. then, run =3DFailsIfnGT999=3D with =3Dn=3D set to, e.g., 1100. notice there are *no* results, and the message area at the bottom of the screen says : Code block returned no value now, if you go to the *Messages* buffer, you *will* see the error message, = i.e., : Error reading results: (user-error Region is longer than =E2=80=98org-tab= le-convert-region-max-lines=E2=80=99 (999) lines; not converting) #+name: FailsIfnGT999 #+begin_src R :results value table :var n=3D100 result <- data.frame() for (i in 1:n) { result <- rbind(result, data.frame(a=3Di,b=3Di+1)) } result #+end_src >>>> Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of 2019-08-29 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emac= s/26.3/lisp/org/)