Re: Prompts again WAS Re: [Orgmode] avoiding source block prompts

2010-08-04 Thread Charles C. Berry
On Wed, 28 Jul 2010, Eric Schulte wrote: Thanks Chuck, I've just swapped in your new and improved regexp. I share your concern both that there could be cases where prompts aren't matched, or more seriously where the actual output looks like a prompt (e.g. user returns a prompt-like string). B

Re: Prompts again WAS Re: [Orgmode] avoiding source block prompts

2010-07-28 Thread Eric Schulte
Thanks Chuck, I've just swapped in your new and improved regexp. I share your concern both that there could be cases where prompts aren't matched, or more seriously where the actual output looks like a prompt (e.g. user returns a prompt-like string). Before taking this explicit prompt removal ap

Re: Prompts again WAS Re: [Orgmode] avoiding source block prompts

2010-07-27 Thread Charles C. Berry
Eric, In ob-R.el, changing this (if (string-match "^\\([ >]+\\)\\[[0-9]+\\]" line) to this (if (string-match "^\\([ ]*[>+][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line) seems to fix things (note I added plus sign which is the continuation prompt in R). I tried it on a bunch of var

Prompts again WAS Re: [Orgmode] avoiding source block prompts

2010-07-27 Thread Charles C. Berry
Eric, I spoke too soon. Have a look at the following. You'll see that the prompts show up there. :-( Chuck #+begin_src R :session :results output ### create x x <- data.frame(a=rnorm(2),b=rnorm(2)) ### now print the result x #+end_src #+results: : : > > a b : 1 0.2702748