[ESS] M-n s is undefined
Christopher W. Ryan
cry@n @end|ng |rom b|ngh@mton@edu
Wed Jun 29 05:42:35 CEST 2016
I have been using Vince's modified version of emacs/ess for a very long
time. M-n s always reliably weaved .Rnw to .tex, and then M-n P reliably
generated .pdf from .tex. It was easy, out-of-the-box, emacs asked me
no questions. I guess I got spoiled.
I would like to learn and try using knitr and Rmarkdown. From things I
read, that may be the way to go for the future. And allegedly easier to
teach beginners, which I may have occasion to do soon. Maybe I need
polymode for that. But I have to be able to maintain my current
R/Sweave/Latex workflow for production documents, until I am up to speed
with knitr and friends.
Another thing I noticed--when I generate a pdf file, all the
undecipherable pdf output is *also* sent to the R output buffer in
emacs. Very strange and distracting.
--Chris Ryan
Vincent Goulet wrote:
> I'm also struggling at times. Please see this (fairly) recent thread:
>
> https://stat.ethz.ch/pipermail/ess-help/2016-April/010932.html
>
> v.
>
>> Le 28 juin 2016 à 17:06, Christopher W. Ryan <cryan using binghamton.edu> a écrit :
>>
>> Still struggling.
>>
>> Do I have to alter my .emacs file, as described here:
>>
>> https://github.com/vspinu/polymode/blob/master/readme.md
>>
>> When I did that, I got some response from M-n w and from M-n e while working with an .Rnw file. Namely, I was asked for name of weaver from the former, and name of exporter from the latter. I had to guess. Then from the exporter, I was asked export to what? Again I guessed, typing PDF. End result was several new files, the usual .tex, .aux, and .log files, and a .pdf file but with [woven] and/or [woven][exported] in the file name. All very cumbersome.
>>
>> How do I arrange things so that emacs/ess will automatically "do the right thing" with .Rnw files, as it did before?
>>
>> Barring that, is an older, pre-polymode version of Vince's emacs/ess still available for download?
>>
>> Thanks.
>>
>> --Chris Ryan
>>
>> Vitalie Spinu wrote:
>>>
>>> There are 4 primary keys in polymode
>>>
>>> https://github.com/vspinu/polymode#basic-usage
>>>
>>> as it doesn't struggle to assign a key to every export/weave format.
>>>
>>>
>>> Vitalie
>>>
>>>
>>>>> On Sun, Jun 26 2016 23:04, Christopher W. Ryan wrote:
>>>
>>>> Thanks. I'll admit I'm having some trouble finding straightforward
>>>> documentation on how to simply use polymode/ESS. Best I've found so far
>>>> is this:
>>>
>>>> https://stat.ethz.ch/pipermail/ess-help/2014-May/009926.html
>>>
>>>> from which I infer that M-n e might take an .Rnw file all the way
>>>> through to a .pdf file . . . does that sound right? I won't be back at
>>>> my new computer for a while to try it out.
>>>
>>>> --Chris
>>>
>>>> Vincent Goulet wrote:
>>>>> Chris,
>>>>>
>>>>> Polymode is active by default in my distribution and its key binding for sweaving are different. Look up its documentation.
>>>>>
>>>>> Best,
>>>>>
>>>>> v.
>>>>>
>>>>>> Le 26 juin 2016 à 16:43, Christopher W. Ryan <cryan using binghamton.edu> a écrit :
>>>>>>
>>>>>> Hello. I just set up a new computer, running Windows 7 Professional 64-bit. I
>>>>>> installed R 3.3.1, then MikTeX 2.9, then Vince Goulet's version of emacs
>>>>>> 24.5.1 with ESS. Those are all on drive C:\, a 250 Gb solid state drive. My
>>>>>> data files and documents are on drive E:\, a terabyte hard drive.
>>>>>>
>>>>>> In emacs, when I have an .Rnw buffer open, M-n s is met with the error message in the subject line.
>>>>>>
>>>>>> Sweave.sty is in C:\LOCALTEXMF\Tex\latex\Sweave
>>>>>>
>>>>>> which I listed as a root in MikTeX Admin. And I refreshed the FNDB, both as a user and as Admin.
>>>>>>
>>>>>> How can I get M-n s (and I assume I'll have a problem with M-P as well) recognized as command to sweave my file?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> --Chris
>>>>>>
>>>>>> ______________________________________________
>>>>>> ESS-help using r-project.org mailing list
>>>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>>
>>>> ______________________________________________
>>>> ESS-help using r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>> ______________________________________________
>> ESS-help using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>
More information about the ESS-help
mailing list