Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Thomas S. Dye
Sebastien Vauban writes: > Yes, you just show that the documentation is not up-to-date, as that > functionality *is* implemented for most languages. This constant is defined in the ob-core.el I have (colnames . ((nil no yes))) which seems to indicate that the documentation is up-to-dat

Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Aaron Ecay
Hi Sebastien, 2015ko urtarrilak 23an, Sebastien Vauban-ek idatzi zuen: > Yes, you just show that the documentation is not up-to-date, as that > functionality *is* implemented for most languages. > > Doing some bit of archeology, I just found out that: > > - Eric wrote a patch to support the abov

Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Rainer M Krug
Sebastien Vauban writes: > Hello Thomas and Rainer, > > Rainer M Krug wrote: >> Sebastien Vauban writes: >>> >>> #+begin_src R :rownames yes :colnames '(Lg Nb) >>> data(iris) >>> head(table(iris$Petal.Length, iris$Species)[, "setosa"], n=2) >>> #+end_src >>> >>> returns: >>> >>> | | x

Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-23 Thread Sebastien Vauban
Hello Thomas and Rainer, Rainer M Krug wrote: > Sebastien Vauban writes: >> >> #+begin_src R :rownames yes :colnames '(Lg Nb) >> data(iris) >> head(table(iris$Petal.Length, iris$Species)[, "setosa"], n=2) >> #+end_src >> >> returns: >> >> | | x | >> |-+| >> | 1 | 1 | >>

Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-22 Thread Rainer M Krug
Sebastien Vauban writes: > Hello, > > The following ECM shows it all: > > #+begin_src R :rownames yes :colnames '(Lg Nb) > data(iris) > head(table(iris$Petal.Length, iris$Species)[, "setosa"]) > #+end_src > > returns: > > | | x | > |-+| > | 1 | 1 | > | 1.1 | 1 | > |

Re: [O] [babel, bug?] colnames with a list of columns does not work

2015-01-22 Thread Thomas S. Dye
Aloha Seb, I don't think babel knows anything about objects created within source code blocks. I think you'll have to set the column names yourself, within the R source code block. All the best, Tom Sebastien Vauban writes: > Hello, > > The following ECM shows it all: > > #+begin_src R :r

[O] [babel, bug?] colnames with a list of columns does not work

2015-01-22 Thread Sebastien Vauban
Hello, The following ECM shows it all: #+begin_src R :rownames yes :colnames '(Lg Nb) data(iris) head(table(iris$Petal.Length, iris$Species)[, "setosa"]) #+end_src returns: | | x | |-+| | 1 | 1 | | 1.1 | 1 | | 1.2 | 2 | | 1.3 | 7 | | 1.4 | 13 | | 1.5 | 13

[O] [babel] [bug] saving moves window and point

2014-08-01 Thread Samuel Wales
to reproduce in maint: c-c ' on a fairly large shell source block move point someplace c-x c-s sometimes point moves sometimes the position in the window recenters it seems quite random what i expected was no changes of anything thanks

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-04-10 Thread Eric Schulte
> > I applied the patch and it is working. > Great, I've just pushed it up. Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-04-07 Thread Rainer M Krug
Eric Schulte writes: > Rainer M Krug writes: > >> Eric Schulte writes: >> Apologies - I am still struggling with encryption.. So here is my example: --8<---cut here---start->8--- #+TITLE: single_to_multi #+DATE: <20

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-04-03 Thread Eric Schulte
Rainer M Krug writes: > Eric Schulte writes: > >>> >>> Apologies - I am still struggling with encryption.. >>> >>> So here is my example: >>> >>> --8<---cut here---start->8--- >>> #+TITLE: single_to_multi >>> #+DATE: <2013-10-15 Tue> >>> #+AUTHOR: Rainer M

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-31 Thread Rainer M Krug
Eric Schulte writes: >> >> Apologies - I am still struggling with encryption.. >> >> So here is my example: >> >> --8<---cut here---start->8--- >> #+TITLE: single_to_multi >> #+DATE: <2013-10-15 Tue> >> #+AUTHOR: Rainer M. Krug >> #+EMAIL: rai...@krugs.de >

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-30 Thread Eric Schulte
> > Apologies - I am still struggling with encryption.. > > So here is my example: > > --8<---cut here---start->8--- > #+TITLE: single_to_multi > #+DATE: <2013-10-15 Tue> > #+AUTHOR: Rainer M. Krug > #+EMAIL: rai...@krugs.de > > ≈* Load R packages and data >

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-28 Thread Rainer M Krug
Eric Schulte writes: > Rainer M Krug writes: > >> Eric Schulte writes: >> >>> Rainer M Krug writes: >>> Eric Schulte writes: > Rainer M Krug writes: > >> Eric Schulte writes: >> >>> Charles Berry writes: >>> John Hendy gmail.com> writes:

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-28 Thread Rainer M Krug
bini55Rmu2tZs.bin Description: application/pgp-encrypted binZzbsrmcnDw.bin Description: Binary data

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-27 Thread Eric Schulte
Rainer M Krug writes: > Eric Schulte writes: > >> Rainer M Krug writes: >> >>> Eric Schulte writes: >>> Rainer M Krug writes: > Eric Schulte writes: > >> Charles Berry writes: >> >>> John Hendy gmail.com> writes: >>> >>> [deleted] > >

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-25 Thread Rainer M Krug
Eric Schulte writes: > Rainer M Krug writes: > >> Eric Schulte writes: >> >>> Rainer M Krug writes: >>> Eric Schulte writes: > Charles Berry writes: > >> John Hendy gmail.com> writes: >> >> [deleted] >>> > >>> > I think the default behavior should be re

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-24 Thread Eric Schulte
Rainer M Krug writes: > Eric Schulte writes: > >> Rainer M Krug writes: >> >>> Eric Schulte writes: >>> Charles Berry writes: > John Hendy gmail.com> writes: > > [deleted] >> > >> > I think the default behavior should be reverted, as tangling and >> > export

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-24 Thread Rainer M Krug
Eric Schulte writes: > Rainer M Krug writes: > >> Eric Schulte writes: >> >>> Charles Berry writes: >>> John Hendy gmail.com> writes: [deleted] > > > > I think the default behavior should be reverted, as tangling and > > exporting are two different things. When I t

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-23 Thread Eric Schulte
Rainer M Krug writes: > Eric Schulte writes: > >> Charles Berry writes: >> >>> John Hendy gmail.com> writes: >>> >>> [deleted] > > I think the default behavior should be reverted, as tangling and > exporting are two different things. When I tangle, I want to see the > code

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-20 Thread Rainer M Krug
Eric Schulte writes: > Charles Berry writes: > >> John Hendy gmail.com> writes: >> >> [deleted] >>> > >>> > I think the default behavior should be reverted, as tangling and >>> > exporting are two different things. When I tangle, I want to see the >>> > code blocks as they are in the org docume

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-19 Thread Eric Schulte
Charles Berry writes: > John Hendy gmail.com> writes: > > [deleted] >> > >> > I think the default behavior should be reverted, as tangling and >> > exporting are two different things. When I tangle, I want to see the >> > code blocks as they are in the org document (with possible variables and >

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-19 Thread Charles Berry
John Hendy gmail.com> writes: [deleted] > > > > I think the default behavior should be reverted, as tangling and > > exporting are two different things. When I tangle, I want to see the > > code blocks as they are in the org document (with possible variables and > > expansions) but not to create

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-18 Thread John Hendy
On Tue, Mar 18, 2014 at 3:44 AM, Rainer M Krug wrote: > Eric Schulte writes: > >> John Hendy writes: >> >>> On Mon, Mar 17, 2014 at 10:00 AM, Eric Schulte >>> wrote: John Hendy writes: >>> Out of curiosity, is there a consensus that this is the preferred >>> behavior for tangling by defa

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-18 Thread Rainer M Krug
Eric Schulte writes: > John Hendy writes: > >> On Mon, Mar 17, 2014 at 10:00 AM, Eric Schulte >> wrote: >>> John Hendy writes: >>> On Fri, Feb 7, 2014 at 1:22 PM, Rainer M Krug wrote: > > > > On 02/07/14, 17:47 , Eric Schulte wrote: > > Rainer M Krug writes: > >

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-17 Thread Eric Schulte
John Hendy writes: > On Mon, Mar 17, 2014 at 10:00 AM, Eric Schulte wrote: >> John Hendy writes: >> >>> On Fri, Feb 7, 2014 at 1:22 PM, Rainer M Krug wrote: On 02/07/14, 17:47 , Eric Schulte wrote: > Rainer M Krug writes: > >> On 02/07/14, 07:18 , John Hendy

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-17 Thread John Hendy
On Mon, Mar 17, 2014 at 10:00 AM, Eric Schulte wrote: > John Hendy writes: > >> On Fri, Feb 7, 2014 at 1:22 PM, Rainer M Krug wrote: >>> >>> >>> >>> On 02/07/14, 17:47 , Eric Schulte wrote: >>> > Rainer M Krug writes: >>> > >>> >> On 02/07/14, 07:18 , John Hendy wrote: >>> >>> Greetings, >>> >>

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-17 Thread Eric Schulte
John Hendy writes: > On Fri, Feb 7, 2014 at 1:22 PM, Rainer M Krug wrote: >> >> >> >> On 02/07/14, 17:47 , Eric Schulte wrote: >> > Rainer M Krug writes: >> > >> >> On 02/07/14, 07:18 , John Hendy wrote: >> >>> Greetings, >> >>> >> >>> >> >>> I don't usually tangle, but am creating a code file

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-11 Thread John Hendy
On Fri, Feb 7, 2014 at 1:22 PM, Rainer M Krug wrote: > > > > On 02/07/14, 17:47 , Eric Schulte wrote: > > Rainer M Krug writes: > > > >> On 02/07/14, 07:18 , John Hendy wrote: > >>> Greetings, > >>> > >>> > >>> I don't usually tangle, but am creating a code file to go along with a > >>> presentat

Re: [O] [Babel] Bug reading example blocks?

2014-02-23 Thread Samuel Wales
Hi Thomas, I guess the fix hasn't made it to maint yet. #+call: repeated-text(eg=example) :results raw #+RESULTS: 1. this is the first line 2. this is the second line with %VARIANT% as the value 3. this is the third line #+name: repeated-text #+begin_src sh :results verbatim output :var eg=

Re: [O] [Babel] Bug reading example blocks?

2014-02-23 Thread Thomas S. Dye
Hi Samuel, I think not. I get these results now: #+call: repeated-text(x="foo",eg=example) :results raw #+results: 1. this is the first line 2. this is the second line with foo as the value 3. this is the third line All the best, Tom Samuel Wales writes: > hi thomas, > > is this still a bug

Re: [O] [Babel] Bug reading example blocks?

2014-02-13 Thread Samuel Wales
hi thomas, is this still a bug? samuel On 11/22/13, Thomas S. Dye wrote: > Aloha all, > > Responding to a query by Gary Oberbrunner, I tried to point out the use > of example blocks to name arbitrary pieces of text. What I found is that > the example block isn't passed whole to a babel source

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-02-07 Thread Rainer M Krug
On 02/07/14, 17:47 , Eric Schulte wrote: > Rainer M Krug writes: > >> On 02/07/14, 07:18 , John Hendy wrote: >>> Greetings, >>> >>> >>> I don't usually tangle, but am creating a code file to go along with a >>> presentation I'm giving this weekend so that attendees can try things >>> out afterw

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-02-07 Thread Eric Schulte
Rainer M Krug writes: > On 02/07/14, 07:18 , John Hendy wrote: >> Greetings, >> >> >> I don't usually tangle, but am creating a code file to go along with a >> presentation I'm giving this weekend so that attendees can try things >> out afterward by cloning my github repo where all the data and

[O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-02-07 Thread Rainer M Krug
On 02/07/14, 07:18 , John Hendy wrote: > Greetings, > > > I don't usually tangle, but am creating a code file to go along with a > presentation I'm giving this weekend so that attendees can try things > out afterward by cloning my github repo where all the data and > necessary files are stored.

Re: [O] [babel] Bug when updating the hash: meta-lines get deleted

2013-12-14 Thread Sebastien Vauban
Hello Eric, Eric Schulte wrote: > "Sebastien Vauban" writes: >> Eric Schulte wrote: When results caching is enabled, and when the hash must be updated, the "meta-lines" in front of the results block are _deleted_. >>> >>> You should use a named code block if you want to decorate the res

Re: [O] [babel] Bug when updating the hash: meta-lines get deleted

2013-12-13 Thread Eric Schulte
"Sebastien Vauban" writes: > Hello Eric, > > Eric Schulte wrote: >>> When results caching is enabled, and when the hash must be updated, the >>> "meta-lines" in front of the results block are _deleted_. >> >> You should use a named code block if you want to decorate the results. > > No, as long a

Re: [O] [babel] Bug when updating the hash: meta-lines get deleted

2013-12-13 Thread Sebastien Vauban
Hello Eric, Eric Schulte wrote: >> When results caching is enabled, and when the hash must be updated, the >> "meta-lines" in front of the results block are _deleted_. > > You should use a named code block if you want to decorate the results. No, as long as the lines which I do insert between the

Re: [O] [babel] Bug when updating the hash: meta-lines get deleted

2013-12-13 Thread Eric Schulte
You should use a named code block if you want to decorate the results. Best, "Sebastien Vauban" writes: > Hello, > > When results caching is enabled, and when the hash must be updated, the > "meta-lines" in front of the results block are _deleted_. > > Such meta-lines include: > - ATTR_LaTeX li

[O] [babel] Bug when updating the hash: meta-lines get deleted

2013-12-13 Thread Sebastien Vauban
Hello, When results caching is enabled, and when the hash must be updated, the "meta-lines" in front of the results block are _deleted_. Such meta-lines include: - ATTR_LaTeX lines - BEGIN/END_CENTER environments ECM: --8<---cut here---start->8--- #+PROPERTY:

Re: [O] [Babel] [Bug] Cache

2013-12-06 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >> In that thread we agreed that the expansion of no-web references >> *should* be included in code blocks for hashing, but no-one has had the >> time to implement this. > > I think we may have discussed this before, but if you make the hashes > dependen

Re: [O] [Babel] [Bug] Cache

2013-12-06 Thread Sebastien Vauban
Achim Gratz wrote: > Eric Schulte writes: >> In that thread we agreed that the expansion of no-web references >> *should* be included in code blocks for hashing, but no-one has had the >> time to implement this. > > I think we may have discussed this before, but if you make the hashes > dependent o

Re: [O] [Babel] [Bug] Cache

2013-12-06 Thread Achim Gratz
Eric Schulte writes: > In that thread we agreed that the expansion of no-web references > *should* be included in code blocks for hashing, but no-one has had the > time to implement this. I think we may have discussed this before, but if you make the hashes dependent on the possibly recursive nowe

Re: [O] [Babel] [Bug] Cache

2013-12-06 Thread Eric Schulte
"Sebastien Vauban" writes: > Hi Eric, > > Eric Schulte wrote: >> "Sebastien Vauban" writes: >>> >>> IIRC, some time ago, a bug involving the computation of the hash (when >>> option cache is enabled) and NoWeb code blocks. I remember that it had been >>> fixed. >>> >>> However, the following exa

Re: [O] [Babel] [Bug] Cache

2013-12-02 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: > "Sebastien Vauban" writes: >> >> IIRC, some time ago, a bug involving the computation of the hash (when >> option cache is enabled) and NoWeb code blocks. I remember that it had been >> fixed. >> >> However, the following example shows it's not (true anymore): >> >>

[O] [Babel] Bug reading example blocks?

2013-11-22 Thread Thomas S. Dye
Aloha all, Responding to a query by Gary Oberbrunner, I tried to point out the use of example blocks to name arbitrary pieces of text. What I found is that the example block isn't passed whole to a babel source block--whitespace is removed from the first line. * Whitespace on first line of exampl

Re: [O] [Babel] [Bug] Cache

2013-11-22 Thread Eric Schulte
Hi Seb, Could you git bisect this breakage to isolate the offending commit? Thanks, "Sebastien Vauban" writes: > Hello Eric, > > IIRC, some time ago, a bug involving the computation of the hash (when option > cache is enabled) and NoWeb code blocks. I remember that it had been fixed. > > Howev

[O] [Babel] [Bug] Cache

2013-11-21 Thread Sebastien Vauban
Hello Eric, IIRC, some time ago, a bug involving the computation of the hash (when option cache is enabled) and NoWeb code blocks. I remember that it had been fixed. However, the following example shows it's not (true anymore): --8<---cut here---start->8--- #+

Re: [O] [BABEL] BUG - error on tangling - disappears when changing the filename

2013-09-30 Thread Eric Schulte
>>> >>> The question is now why is this function org-babel-mark-file-as-tangled >>> receives NULL as a buffer-file-name? >> >> I'm not sure, but perhaps you could wrap the body of buffer-file-name in >> a (when (buffer-file-name) ...) form to protect against null files. > > Sounds reasonable and I

Re: [O] [BABEL] BUG - error on tangling - disappears when changing the filename

2013-09-30 Thread Rainer M Krug
Eric Schulte writes: > Rainer M Krug writes: > >> OK - narrowed it down to a post tangle hook which I need for proper >> debugging of R (jumping to source line in org file and not tangled R file): >> >> , >> | #+begin_src emacs-lisp >> | (defvar org-babel-tangled-file nil >> | "If non-nill

Re: [O] [BABEL] BUG - error on tangling - disappears when changing the filename

2013-09-28 Thread Eric Schulte
Rainer M Krug writes: > OK - narrowed it down to a post tangle hook which I need for proper > debugging of R (jumping to source line in org file and not tangled R file): > > , > | #+begin_src emacs-lisp > | (defvar org-babel-tangled-file nil > | "If non-nill, current file was tangled with o

Re: [O] [BABEL] BUG - error on tangling - disappears when changing the filename

2013-09-27 Thread Rainer M Krug
OK - narrowed it down to a post tangle hook which I need for proper debugging of R (jumping to source line in org file and not tangled R file): , | #+begin_src emacs-lisp | (defvar org-babel-tangled-file nil | "If non-nill, current file was tangled with org-babel-tangle") | (put 'org-babel-t

Re: [O] [BABEL] BUG - error on tangling - disappears when changing the filename

2013-09-27 Thread Rainer M Krug
Forgot: tried with 8.2 stable release and with version from git - both the same. Rainer M Krug writes: > Hi > > I have a strange error when tangling. > > I have a large org file with several code blocks tangling in about > 20 R files and one bash file. Usually tangling works perfectly, but > so

[O] [BABEL] BUG - error on tangling - disappears when changing the filename

2013-09-27 Thread Rainer M Krug
Hi I have a strange error when tangling. I have a large org file with several code blocks tangling in about 20 R files and one bash file. Usually tangling works perfectly, but sometimes one code block does not tangle a code block to a file. These are different blocks. When I change the name of th

Re: [O] [babel] bug[?] when calling src_R from table?

2012-11-10 Thread Nicolas Goaziou
Hello, Rasmus writes: > I wanted to combine a table of text and a generated result (in org to > LaTaX using the new exporter). It would seem src_R snips would be > perfect for this. However, it does not seem to work. I.e. src_R is > translated correctly in the text, but not in the table. Tha

[O] [babel] bug[?] when calling src_R from table?

2012-11-10 Thread Rasmus
Hi, I wanted to combine a table of text and a generated result (in org to LaTaX using the new exporter). It would seem src_R snips would be perfect for this. However, it does not seem to work. I.e. src_R is translated correctly in the text, but not in the table. Is this a feature or a bug?

Re: [O] [BABEL][BUG] lists and inline src

2012-09-19 Thread cberry
Bastien writes: > Hi Chuck, > > cbe...@tajo.ucsd.edu writes: > >> My apologies if this is already reported (I recall seeing something like >> this, but cannot find it in the archives). >> >> A list element starting with an inline src block is improperly >> parsed. > > I cannot reproduce this wit

Re: [O] [BABEL][BUG] lists and inline src

2012-09-19 Thread Bastien
Hi Chuck, cbe...@tajo.ucsd.edu writes: > My apologies if this is already reported (I recall seeing something like > this, but cannot find it in the archives). > > A list element starting with an inline src block is improperly > parsed. I cannot reproduce this with Org 7.9.1. -- Bastien

[O] [BABEL][BUG] lists and inline src

2012-09-18 Thread cberry
My apologies if this is already reported (I recall seeing something like this, but cannot find it in the archives). A list element starting with an inline src block is improperly parsed. for example - src_emacs-lisp{(org-version)} is not executed by babel. An ECM: , | * virgin version |

Re: [O] [babel] [BUG] table with header line as parameter

2012-05-11 Thread Eric Schulte
Andreas Leha writes: > Andreas Leha writes: > >> Hi all, >> >> I do not know what could be the cause of this, but I can't have a >> table with header as argument to a source block any more: >> >> #+name: table_w_header >> | one | two | >> |-+-| >> | 1 | 3 | >> >> #+begin_src R :var t

Re: [O] [babel] [BUG] table with header line as parameter

2012-05-11 Thread Andreas Leha
Andreas Leha writes: > Hi all, > > I do not know what could be the cause of this, but I can't have a > table with header as argument to a source block any more: > > #+name: table_w_header > | one | two | > |-+-| > | 1 | 3 | > > #+begin_src R :var tbl=table_w_header > > #+end_src > > I

[O] [babel] [BUG] table with header line as parameter

2012-05-09 Thread Andreas Leha
Hi all, I do not know what could be the cause of this, but I can't have a table with header as argument to a source block any more: #+name: table_w_header | one | two | |-+-| | 1 | 3 | #+begin_src R :var tbl=table_w_header #+end_src If I do C-c C-v v on the above source block, I ge

Re: [O] [babel] [bug?] create graph in R

2012-04-17 Thread Michael Hannon
On Tuesday, April 17, 2012 at 7:46 AM Sebastien Vauban wrote: >Hi Rainer, > >Rainer M Krug wrote: >> I am irritated - shouldn't the following create a pdf? >> >> #+begin_src R :results file :file sustEconOnlyNonRec.pdf :session R >>   plot(runif(100)) >> #+end_src >> >> I am getting no error messa

Re: [O] [babel] [bug?] create graph in R

2012-04-17 Thread Nick Dokos
Nick Dokos wrote: > Sebastien Vauban wrote: > > > Hi Rainer, > > > > Rainer M Krug wrote: > > > I am irritated - shouldn't the following create a pdf? > > > > > > #+begin_src R :results file :file sustEconOnlyNonRec.pdf :session R > > > plot(runif(100)) > > > #+end_src > > > > > > I am getti

Re: [O] [babel] [bug?] create graph in R

2012-04-17 Thread Nick Dokos
Sebastien Vauban wrote: > Hi Rainer, > > Rainer M Krug wrote: > > I am irritated - shouldn't the following create a pdf? > > > > #+begin_src R :results file :file sustEconOnlyNonRec.pdf :session R > > plot(runif(100)) > > #+end_src > > > > I am getting no error messages in the R console, nothi

Re: [O] [babel] [bug?] create graph in R

2012-04-17 Thread Sebastien Vauban
Hi Rainer, Rainer M Krug wrote: > I am irritated - shouldn't the following create a pdf? > > #+begin_src R :results file :file sustEconOnlyNonRec.pdf :session R > plot(runif(100)) > #+end_src > > I am getting no error messages in the R console, nothing in the messages? I'm not using R -- yet! -

[O] [babel] [bug?] create graph in R

2012-04-17 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I am irritated - shouldn't the following create a pdf? #+begin_src R :results file :file sustEconOnlyNonRec.pdf :session R plot(runif(100)) #+end_src I am getting no error messages in the R console, nothing in the messages? Org-mode version 7.

Re: [O] [babel] [bug] Header argument :file in call_ lines

2012-03-26 Thread Andreas Leha
Eric Schulte writes: > Andreas Leha writes: > >> Hi all, >> >> I think there is a bug in babel concerning inline source block calls. >> >> Suppose, I have a source block that generates a file: >> #+name: someplot >> #+begin_src R :results graphics :file someplot.pdf :var somemax=10 >> plot(1:s

Re: [O] [babel] [bug] Header argument :file in call_ lines

2012-03-26 Thread Eric Schulte
Andreas Leha writes: > Hi all, > > I think there is a bug in babel concerning inline source block calls. > > Suppose, I have a source block that generates a file: > #+name: someplot > #+begin_src R :results graphics :file someplot.pdf :var somemax=10 > plot(1:somemax) > #+end_src > > #+results:

[O] [babel] [bug] Header argument :file in call_ lines

2012-03-26 Thread Andreas Leha
Hi all, I think there is a bug in babel concerning inline source block calls. Suppose, I have a source block that generates a file: #+name: someplot #+begin_src R :results graphics :file someplot.pdf :var somemax=10 plot(1:somemax) #+end_src #+results: someplot [[file:someplot.pdf]] I am tryi

Re: [O] [babel] BUG in call lines

2012-03-26 Thread Eric Schulte
Hi, Thanks for reporting this bug. I've just pushed up a patch. Cheers, Andreas Leha writes: > Hi all, > > there seems to be a bug in call lines: > > Suppose, I have a src block with two parameters: > > #+name: insert_hline > #+header: :var fulltable=mytable() :var after_row=1 > #+begin_src e

Re: [O] [babel] BUG in call lines

2012-03-22 Thread Marc-Oliver Ihm
Hi Andreas, I think the behaviour you have discovered is governed by the constant org-babel-block-lob-one-liner-regexp; However, tweaking this regular expression the right way seems to be really hard (impossible): http://stackoverflow.com/questions/546433/regular-expression-to-match-outer-br

[O] [babel] BUG in call lines

2012-03-22 Thread Andreas Leha
Hi all, there seems to be a bug in call lines: Suppose, I have a src block with two parameters: #+name: insert_hline #+header: :var fulltable=mytable() :var after_row=1 #+begin_src emacs-lisp (let ((rrr (cons (quote hline) fulltable)) (bottomrows (nthcdr after_row fulltable)) (

Re: [O] [babel] [bug] org-babel-use-quick-and-dirty-noweb-expansion

2012-03-19 Thread Bastien
Hi Eric, Eric Schulte writes: > Thanks for bringing up this bug. I'm attaching a patch to this email, > once the current repositories issues are resolved I'll apply this patch > to the repository. In the interim, you can apply this patch to your > local copy of the git repository with. Applie

Re: [O] [babel] [bug] org-babel-use-quick-and-dirty-noweb-expansion

2012-03-19 Thread Eric Schulte
Nicolas Girard writes: > 2012/3/19 Eric Schulte >> >> Thanks for bringing up this bug.  I'm attaching a patch to this email, >> once the current repositories issues are resolved I'll apply this patch >> to the repository.  In the interim, you can apply this patch to your >> local copy of the git

Re: [O] [babel] [bug] org-babel-use-quick-and-dirty-noweb-expansion

2012-03-19 Thread Nicolas Girard
2012/3/19 Eric Schulte > > Thanks for bringing up this bug.  I'm attaching a patch to this email, > once the current repositories issues are resolved I'll apply this patch > to the repository.  In the interim, you can apply this patch to your > local copy of the git repository with. > Great ! It'

Re: [O] [babel] [bug] bug in R-specific header argument for graphics driver

2012-03-19 Thread Eric Schulte
Rainer M Krug writes: > On 19/03/12 15:17, Eric Schulte wrote: >> Hi Rainer, >> >> I see you CC'd me on this email. I personally do not know anything about >> how the graphics >> header argument to R code blocks works. > > Sorry - I thought it was part of babel, and when I hear "babel", I thin

Re: [O] [babel] [bug] org-babel-use-quick-and-dirty-noweb-expansion

2012-03-19 Thread Eric Schulte
Hi Nicolas, Thanks for bringing up this bug. I'm attaching a patch to this email, once the current repositories issues are resolved I'll apply this patch to the repository. In the interim, you can apply this patch to your local copy of the git repository with. $ cd your/path/to/org $ git am

Re: [O] [babel] [bug] bug in R-specific header argument for graphics driver

2012-03-19 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/03/12 15:17, Eric Schulte wrote: > Hi Rainer, > > I see you CC'd me on this email. I personally do not know anything about how > the graphics > header argument to R code blocks works. Sorry - I thought it was part of babel, and when I hear "b

Re: [O] [babel] [bug] bug in R-specific header argument for graphics driver

2012-03-19 Thread Eric Schulte
Hi Rainer, I see you CC'd me on this email. I personally do not know anything about how the graphics header argument to R code blocks works. I would recommend looking deeper into the behavior using the following tools - Look at the expanded code block body using org-babel-expand-src-block - Run

[O] [babel] [bug] bug in R-specific header argument for graphics driver

2012-03-19 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I did not get any response so far, so I hope that the email did not went out... Rainer - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When giving the header argument :title: the graph is not produced in a file: * This works Display boxplot of s

[O] [babel] [bug] org-babel-use-quick-and-dirty-noweb-expansion

2012-03-18 Thread Nicolas Girard
Hi all, I've been succesfully using babel to make various literate programming work. Unfortunately, tangling performance has dramatically decreased, to the point of being barely usable. I wish I could get advantage of the "quick & dirty noweb expansion" Eric introduced in january, but it has an und

[O] [babel] [bug] bug in R-specific header argument for graphics driver

2012-03-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When giving the header argument :title: the graph is not produced in a file: * This works Display boxplot of spread of Mff over time for each release strategy :PROPERTIES: :results: graphics :file: SpreadOverTime.pdf :width: 4 :height: 8

Re: [O] [babel] Bug with empty results

2012-03-12 Thread Thomas S. Dye
Works here. Thanks. Tom Eric Schulte writes: > Fixed, Thanks for the report. > > t...@tsdye.com (Thomas S. Dye) writes: > >> Aloha all, >> >> BEGIN and END are transposed with empty results, as shown in the example >> below. The results shown are from two evaluations of the source code >> blo

Re: [O] [babel] Bug with empty results

2012-03-12 Thread Eric Schulte
Fixed, Thanks for the report. t...@tsdye.com (Thomas S. Dye) writes: > Aloha all, > > BEGIN and END are transposed with empty results, as shown in the example > below. The results shown are from two evaluations of the source code > block. > > I'm using Org-mode version 7.8.03 (release_7.8.03.575

[O] [babel] Bug with empty results

2012-03-10 Thread Thomas S. Dye
Aloha all, BEGIN and END are transposed with empty results, as shown in the example below. The results shown are from two evaluations of the source code block. I'm using Org-mode version 7.8.03 (release_7.8.03.575.g06a1b) All the best, Tom * Empty results #+begin_src emacs-lisp :results silent

Re: [O] [Babel] : Bug in org-tangle with :comments, patch included

2012-03-09 Thread Eric Schulte
Applied. Thanks, aditya siram writes: > Hi all, > When I tangle a source block with ":comments yes" any spaces in the > sub-heading in which the block is found are replaced with "%2520" > instead of "%20". As a consequence when I "org-babel-detangle" the > correct heading is not found. > > As an

[O] [Babel] : Bug in org-tangle with :comments, patch included

2012-03-08 Thread aditya siram
Hi all, When I tangle a source block with ":comments yes" any spaces in the sub-heading in which the block is found are replaced with "%2520" instead of "%20". As a consequence when I "org-babel-detangle" the correct heading is not found. As an example given the following org file: * Babel Tanglin

[O] [babel] BUG in inline source blocks

2012-01-25 Thread Andreas Leha
Hi all, I experience unexpected behaviour when an inline source block is not preceded by whitespace. Example: === * Test inline This is a functional inline src_R{print("source block")}. This (src_R{print("here")}) is not. === Regards, Andreas

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >> Yes, I'm now pushing bug-fix commits to maint as well as master. > > That way you duplicate the commit (the same change now has two ID). > I think it would be preferrable to push bugfixes to maint and then merge > maint back into master. > Alright,

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Achim Gratz
Eric Schulte writes: > Yes, I'm now pushing bug-fix commits to maint as well as master. That way you duplicate the commit (the same change now has two ID). I think it would be preferrable to push bugfixes to maint and then merge maint back into master. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#4

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >> Great, both the test case and a fixed version of this function are now >> applied to the git repository. > > You've pushed it to both maint and master? > Yes, I'm now pushing bug-fix commits to maint as well as master. > > > Achim. -- Eric Schult

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Achim Gratz
Eric Schulte writes: > Great, both the test case and a fixed version of this function are now > applied to the git repository. You've pushed it to both maint and master? Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://S

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Eric Schulte
Martyn Jago writes: > Eric Schulte writes: > >> Martyn Jago writes: >> >>> Martyn Jago writes: >>> >>> [...] >>> >>> The problem appears to be associated with the way `member' works: >>> >>> - on Emacs 23+ the following doesn't generate an error >>> - on Emacs 22 it generates "Wrong type ar

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Martyn Jago
Eric Schulte writes: > Martyn Jago writes: > >> Martyn Jago writes: >> >> [...] >> >> The problem appears to be associated with the way `member' works: >> >> - on Emacs 23+ the following doesn't generate an error >> - on Emacs 22 it generates "Wrong type argument: listp, 58" >> >> #+begin_sr

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Eric Schulte
Martyn Jago writes: > Martyn Jago writes: > >> There is a bug running babel on Emacs 22.1.1 with a minimal init file. >> > > [...] > >> >> The following fails: >> >> * Test fails >> >> #+begin_src emacs-lisp :results silent >> >> "hello there" >> >> #+end_src >> > > [...] > > The problem appears

Re: [O] [babel][bug] org-babel-balanced-split (with Emacs-22)

2012-01-03 Thread Martyn Jago
Martyn Jago writes: > There is a bug running babel on Emacs 22.1.1 with a minimal init file. > [...] > > The following fails: > > * Test fails > > #+begin_src emacs-lisp :results silent > > "hello there" > > #+end_src > [...] The problem appears to be associated with the way `member' works:

[O] [babel][bug]

2012-01-02 Thread Martyn Jago
There is a bug running babel on Emacs 22.1.1 with a minimal init file. The following code works: --8<---cut here---start->8--- * Test passes #+begin_src emacs-lisp "hello there" #+end_src #+results: : hello there --8<---cut here---

Re: [O] [babel-bug] Text properties silently stripped from code block evaluation results

2011-12-13 Thread Eric Schulte
Štěpán Němec writes: > `org-babel-insert-result' unconditionally strips any text properties > from the evaluation result. > > One problem is that this isn't documented. Another problem is that this > behaviour might not be desirable (I can't imagine why one _would_ want > to have the properties s

[O] [babel-bug] Text properties silently stripped from code block evaluation results

2011-12-13 Thread Štěpán Němec
`org-babel-insert-result' unconditionally strips any text properties from the evaluation result. One problem is that this isn't documented. Another problem is that this behaviour might not be desirable (I can't imagine why one _would_ want to have the properties stripped, on the contrary -- I need

  1   2   >