[ESS] ESS and Sweave

Shige Song shigesong at gmail.com
Thu Apr 29 02:20:15 CEST 2010


I was jumping to conclusion too fast. I tried your method, and got the
same results as before: ""\"" pdfviewer "\" \"" namestem ".pdf\"")))"
brings up
the pdf viewer, but frees Emacs; "\"" pdfviewer "\" \"" namestem
".pdf\" &"))) does not freeze Emacs, but does not bring up the pdf
viewer either. Feel like my computers (two of them) were cursed.

Shige

On Wed, Apr 28, 2010 at 4:13 PM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
> As Sebastian said earlier in this thread, he does not see your problem, nor
> do I and many others
> (I hope) who are using the facility for Sweave editing via ESS.
>
> Did you try to start emacs without any startup options ("emacs -q") and then
> only load
> "ess-site.el" (manually),
> and then open the *.Rnw / *.Snw file, and see if you still have the problem
> ?
>
> Martin Maechler, ETH Zurich
>
> On Tue, Apr 27, 2010 at 01:22, Shige Song <shigesong at gmail.com> wrote:
>>
>> This is weird. ""\"" pdfviewer "\" \"" namestem ".pdf\"")))" brings up
>> the pdf viewer, but frees Emacs; "\"" pdfviewer "\" \"" namestem
>> ".pdf\" &"))) does not freeze Emacs, but does not bring up the pdf
>> viewer either.
>>
>> Any suggestions?
>>
>> Shige
>>
>> On Mon, Apr 26, 2010 at 4:48 PM, Shige Song <shigesong at gmail.com> wrote:
>> > Here is my newbie's hack.
>> >
>> > from line 177:
>> >
>> > -      (shell-command (concat
>> > -       (if (and ess-microsoft-p (w32-shell-dos-semantics))
>> > -           "start \"" pdfviewer "\" \"" namestem ".pdf\""
>> > -                 "\"" pdfviewer "\" \"" namestem ".pdf\" &"))))
>> > +      (shell-command (concat
>> > +                 "\"" pdfviewer "\" \"" namestem ".pdf\"")))
>> >
>> > It will not work on Windows because I disabled it; but on my Linux box
>> > it works fine now. Hope somebody can come up with a "real" solution.
>> >
>> > Shige
>> >
>> > On Sat, Apr 24, 2010 at 8:28 PM, Shige Song <shigesong at gmail.com> wrote:
>> >> Dear Seb,
>> >>
>> >> I got the message "xdg-open /home/shige/test.pdf: finished", but no
>> >> pdf viewer window was opened. No clue what is going on.
>> >>
>> >> Shige
>> >>
>> >> On Sat, Apr 24, 2010 at 4:19 PM, Sebastian P. Luque <spluque at gmail.com>
>> >> wrote:
>> >>> On Fri, 23 Apr 2010 19:45:07 -0400,
>> >>> Shige Song <shigesong at gmail.com> wrote:
>> >>>
>> >>>> On my system, it seems to compile ok, but will not bring up the pdf
>> >>>> viewer (evince).
>> >>>
>> >>> Can you give a recipe to reproduce this and elaborate?  Works for me.
>> >>>
>> >>> --
>> >>> Seb
>> >>>
>> >>
>> >
>>
>> _______________________________________________
>> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core
>



More information about the ESS-help mailing list