[ESS] ess-error: ESS process not ready. Wasn't there a fix for this? Make Sweave -> pdflatex work. Help?

Paul Johnson pauljohn32 at gmail.com
Wed Jun 22 18:30:45 CEST 2011


On Wed, Jun 22, 2011 at 1:45 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
>>>>>> Paul Johnson <pauljohn32 at gmail.com>
>>>>>>     on Tue, 21 Jun 2011 23:16:13 -0500 writes:
>
>    > I need to know why the rest of you don't see "ESS process
>    > not ready" if you do things in the way Martin
>    > describes. See below
>
> Could it be that you use a very non-standard  R prompt ?
> i.e., would it work after
>
>  options(prompt = "> ")
>
> I think that ESS does not have the prompt hard wired,
> but I'm pretty sure that
>  options(prompt = " ")
> would break things..
> Did you "accidentally" do that?
>

Dear Martin:

Problem Solved:

If we ever meet, I will owe you many beers of your choice. You put
your finger right on the problem!

I didn't accidentally do that. I did it on purpose!  I got the idea
from the Sweavel.sty approach that Frank Harrell suggested
(http://biostat.mc.vanderbilt.edu/wiki/Main/SweaveTemplate), which I
have found makes more beautiful output than the Verbatim based Sweave.
You can feast your eyes:

http://pj.freefaculty.org/R/SummerCamp2011/lectures/07-plotting1.pdf

I have mainly used that because it makes nicer looking shades and
symbols like ~ and <-, but in adapting the example he provided, I
obliterated the prompt as well.

I never imagined that making the blank prompt would kill Emacs-ESS.


> Regards,
> Martin
>
>
>    > On Mon, Jun 20, 2011 at 3:49 PM, Martin Maechler
>    > <maechler at stat.math.ethz.ch> wrote:
>
>    >>
>    >> That's why  texi2pdf  is the default command, run by  M-n
>    >> P..  I use Sweave most of the time with these two:
>    >>
>    >> M-n s  {Sweave whole buffer --> *.tex} M-n P  {pdflatex
>    >> *.tex; bibtex ...}
>    >>
>    >> but also am glad that I can send single lines of R code,
>    >> or one chunk, or ...  If I want.
>    >>
>
> When I try this Martin's way, I end up with the same error I get when
>    > I use the pull down menus.
>
>    > The Emacs minibuffer says
>
>    > ess-error: ESS process not ready. Finish your command
>    > before trying again.
>
>    > It appears to me the pull down menu Noweb ->
>    > Sweave,Tangling -> Sweave is exactly the same as "M-n s".
>
>    > Emacs "messages" buffer says:
>
>    > no ESS processes running; starting R Type C-h m for help
>    > on ESS version 5.13 (No changes need to be saved)
>    > Sweave()ing
>    > "/home/pauljohn/ps/SVN-repo/Rcourse/data-1/data1.Rnw"
>    > ess-error: ESS process not ready. Finish your command
>    > before trying again.
>
>
>    >> Martin
>    >>
>    >>> On Mon, Jun 20, 2011 at 5:38 PM, Paul Johnson
>    >>> <pauljohn32 at gmail.com> wrote:
>    >>>> How are we using Sweave inside Emacs these days?  I'm
>    >>>> just wondering how you use it on a day-to-day basis.
>    >>>>
>    >>>> I'd like to be able to send individual chunks to an
>    >>>> open R session for development, and then compile the
>    >>>> whole document as well. I need to make sure pdflatex is
>    >>>> run 2 or 3 times, and some docs need bibtex in there.
>    >>>>
>    >>>> In Debian with Emacs 23.3 and ess-5.13, I have auctex
>    >>>> installed as well.  Auctex won't work along with
>    >>>> ESS. Right?
>    >>>>
>    >>>> Inside Emacs, after using the pull down menu Noweb ->
>    >>>> Sweaving/Tangling -> Sweave,  runs the program through
>    >>>> R, but nothing else works.
>    >>>>
>    >>>> ess-error: ESS process not ready. Finish your command
>    >>>> before trying again.  ess-error: ESS process not
>    >>>> ready. Finish your command before trying again.
>    >>>>
>    >>>> After reviewing list emails from last winter, I
>    >>>> installed the ESS from svn, and same thing happens.
>    >>>>
>    >>>> However, in the ESS from SVN, there is a change. New
>    >>>> menu items Command -> Sweave and Command ->
>    >>>> LaTeXSweave.  That does work!
>    >>>>
>    >>>> However, I can't say for sure if pdflatex is run the
>    >>>> correct number of times.
>    >>>>
>    >>>> pj
>    >>>>
>    >>>> --
>    >>>> Paul E. Johnson Professor, Political Science 1541 Lilac
>    >>>> Lane, Room 504 University of Kansas
>    >>>>
>    >>>> ______________________________________________
>    >>>> ESS-help at r-project.org mailing list
>    >>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>    >>>>
>    >>>
>>> ______________________________________________
>    >>> ESS-help at r-project.org mailing list
>    >>> https://stat.ethz.ch/mailman/listinfo/ess-help
>    >>>
>    >>>
>    >>
>
>
>
> --
> Paul E. Johnson
>    > Professor, Political Science 1541 Lilac Lane, Room 504
>    > University of Kansas
>
>    > ______________________________________________
>    > ESS-help at r-project.org mailing list
>    > https://stat.ethz.ch/mailman/listinfo/ess-help
>



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas



More information about the ESS-help mailing list