[ESS] Is ess supposed to help with Sweave documents?
A.J. Rossini
blindglobe at gmail.com
Mon Jan 24 20:14:52 CET 2005
If you are using Sweave using strictly Noweb markup, then the fast and
painful way is to use a Makefile to extract the code with noweb and
dump it to a file, then reload it. But you've got to be using markup
which is in the intersection of Noweb and Sweave (and I'm not going to
go into that argument again).
Another option is to use the submit thread command (I don't think it's
bound) which creates a temp buffer of the "thread" (i.e. appropriate
chunks strung together) and dumps it into a buffer.
BUT, I think that Mark (the original author) only used ess-eval-buffer
on it. rather than ess-load-source, which is what you want to do. We
should look into that for the following release.
On Mon, 24 Jan 2005 18:39:32 +0100, Henrik Andersson
<h.andersson at nioo.knaw.nl> wrote:
> I'm getting into the habit of writing Sweave files instead of R scripts
> with a lot of comments. The pros of this approach are obvious but the
> downside are that I often type things wrong and when I invoke my little
> script that magically transforms this into a pdf this ends in error and
> Sweave tells me something is wrong in chunk number x.
>
> I would like to be able to load the R code in a file using C-c C-l (so
> Stangle and source instead of just source) just like you would with a .R
> file and then goto the error easily.
>
> I have not entered the dark arts of lisp programming so I'm afraid I can
> not contribute anything more than ideas and feedback at the moment.
>
> Maybe I will someday, since I now find myself spending more than 50 % of
> my working hours using Emacs.
>
> Cheers, Henrik Andersson
>
> Paul Johnson wrote:
> > OK, I think this is helping. On Fedora Core 2 and Fedora Core 3 Test3,
> > I have emacs-21.3. I do have the cl and cl-seq files in the
> > /usr/share/emacs/21.3/lisp dirctory:
> > $ find . -name "cl*"
> > ./emacs-lisp/cl.elc
> > ./emacs-lisp/cl-compat.elc
> > ./emacs-lisp/cl-macs.elc
> > ./emacs-lisp/cl-extra.elc
> > ./emacs-lisp/cl-specs.el
> > ./emacs-lisp/cl-seq.elc
> > ./emacs-lisp/cl-indent.elc
> >
> > After following the link to the cl page that David offers, I put this
> > into the top of ~/.emacs
> >
> > (require 'cl)
> >
> > And now David's functions do work properly. Hooray! MUCH more convenient.
> >
> > I would second David's proposal that one coherent set of tools and
> > practices be developed. For me, Emacs is frustrating because even the
> > simplest things, like making the screen fonts bigger, is a challenge.
> > Maybe, when Emacs-gtk materializes, some of this frustration will go
> > away. But, somehow, I doubt it.
> >
> > pj
> >
> >
> > Stephen Eglen wrote:
> >
> >> > > I have no idea how I found it (and perhaps this is a
> >> > > better way to do what I did with it) but it seems to
> >> > > be in cl-seq.el which is a part of common lisp (I
> >> > > think). Here's something about it:
> >> > > David - can you confirm what version of Emacs you run? I think
> >> Martin
> >> > said search is not in Emacs 21.3; I run Emacs 21.3.50 CVS and find it
> >> > also in cl-seq.el
> >> > > search is an autoloaded Lisp function in `cl-seq'.
> >> >
> >> just to follow up, David is using Emasc 21.3 and says it is present.
> >> I just looked in Emacs 21.2; it too has search defined in cl-seq.el.
> >> So I'm not clear as to why others cannot find it -- maybe try doing
> >> (load-library "cl-seq")
> >> (locate-library "cl-seq")
> >>
> >> and looking for search?
> >>
> >> Stephen
> >>
> >> ______________________________________________
> >> ESS-help at stat.math.ethz.ch mailing list
> >> https://stat.ethz.ch/mailman/listinfo/ess-help
> >
> >
> >
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
best,
-tony
"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).
A.J. Rossini
blindglobe at gmail.com
More information about the ESS-help
mailing list