configuration for R with ESS + XEmacs

John Fox jfox at mcmaster.ca
Thu Nov 7 13:10:17 CET 2002


Dear John,

I'm afraid that I can't help you much, since I don't use Sweave. I guess 
that files of type .Rnw or .nw aren't recognized as R source files, so the 
menus and key bindings for R source code aren't used. It shouldn't be hard 
to change this, but I don't know where to look. I'm sure that someone else 
on the ESS list will be able to help.

Sorry,
  John

At 10:38 AM 11/7/2002 +0000, you wrote:
>Hi,
>
>I would like to use Xemacs with John Fox's
>configuration files as per
>http://www.socsci.mcmaster.ca/jfox/Books/Companion/ess.pdf
>I believe that I have followed the instructions in
>http://www.socsci.mcmaster.ca/jfox/Books/Companion/fox-ESS-config.zip
>but I need help with a Xemacs Warning that occurs when
>I load a file with the extension *.Rnw or *.nw into Xemacs.
>e.g. if I load the sample Rnw file in
>...\R\rw1061\library\tools\Sweave\Sweave-test-1.Rnw
>
>The warning is
>"(1) (local-variables/warning) File local-variables error:
>Symbol's value as variable is void: noweb-font-lock-mode"
>
>Apart from the warning, everything seems to work
>as per the doucmentation except that the ESS
>menu option is not visible when in a *.Rnw buffer
>and the usual command dont work
>e.g. pressing the R toolbar buttons works
>but C-c C-n to send a line into R is 'not defined'.
>
>I looked for "noweb-font-lock-mode" in xemacs,
>and found it in
>XEmacs/xemacs-packages/lisp/ess/noweb-font-lock-mode.el.
>(I have installed all of the packages with Xemacs.)
>============
> > cd c:/etc/xemacs
> > grep -r "noweb-font-lock-mode" *.*
>c:\etc\xemacs>grep -r "noweb-font-lock-mode" *.*
>XEmacs-21.4.10/etc/package-index.LATEST.pgp:
>provides (ess-batch ess-comp ess-cust ess-dump ess-emcs
>ess-font-lock ess-help ess-inf ess-iw32 ess-latex-mode
>ess-menu ess-mode ess-mous ess-noweb ess-site
>ess-sysdp ess-utils ess-vars ess essa-r essa-sas essd-arc
>essd-els essd-r essd-omg essd-r essd-s3 essd-s4 essd-sas
>essd-sp3 essd-sp4 essd-sp5 essd-sp6 essd-sta essd-vst
>essd-xls essddr essdsp6w essl-bug essl-lsp essl-omg
>essl-py essl-s essl-sas essl-sta make-regexp mouseme
>msdos noweb-font-lock-mode noweb-mode)
>setup.log.full:Installing file
>  C:/etc/XEmacs/xemacs-packages/lisp/ess/noweb-font-lock-mode.el
>setup.log.full:Installing file
>  C:/etc/XEmacs/xemacs-packages/lisp/ess/noweb-font-lock-mode.elc
>==============
>
>The file 'xemacs\xemacs-packages\lisp\ess\noweb-font-lock-mode.el'
>says
>==============
>;;  To use it, you must add
>;;  (require noweb-font-lock-mode) to your .emacs file.
>==============
>But setting this in ...\.xemacs\.init.el file didnt help.
>
>I searched my .xemacs folder but found nothing.
>==============
> > cd p:/.xemacs
> > grep -r "noweb-font-lock-mode" *.*
>p:\.xemacs>grep -r "noweb-font-lock-mode" *.*
>==============
>
>Using 'M-x noweb-describe-mode' within Xemacs
>I get a help buffer but it doesnt mention
>noweb-font-lock-mode as an option.
>
>I also tried removing 'noweb-font-lock-mode.el'
>and 'noweb-font-lock-mode.elc' from
>'...\xemacs\xemacs-packages\lisp\ess' but
>this had no effect.
>
>If I remove the first line of
>...\R\rw1061\library\tools\Sweave\Sweave-test-1.Rnw
>i.e. '% -*- mode: noweb; noweb-default-code-mode: R-mode; -*-'
>then the error goes away but I dont see the ess
>buffer anymore.
>
>My feeling is that I have a basic mistake but I cant see it.
>Can anyone help, please?
>
>(I am on NT4 with R 1.6.1, Xemacs 21.4 (April 2001])
>with all the packages installed.)
>
>Regards,
>
>John.
>
>John Gavin <john.gavin at ubsw.com>,
>Quantitative Risk Models and Statistics,
>UBS Warburg, 100 Liverpool Street (6th floor),
>London EC2M 2RH, UK.
>Phone +44 (0) 207 567 4289
>Fax   +44 (0) 207 568 5352
>
>Visit our website at http://www.ubswarburg.com
>
>This message contains confidential information and is intended only
>for the individual named.  If you are not the named addressee you
>should not disseminate, distribute or copy this e-mail.  Please
>notify the sender immediately by e-mail if you have received this
>e-mail by mistake and delete this e-mail from your system.
>
>E-mail transmission cannot be guaranteed to be secure or error-free
>as information could be intercepted, corrupted, lost, destroyed,
>arrive late or incomplete, or contain viruses.  The sender therefore
>does not accept liability for any errors or omissions in the contents
>of this message which arise as a result of e-mail transmission.  If
>verification is required please request a hard-copy version.  This
>message is provided for informational purposes and should not be
>construed as a solicitation or offer to buy or sell any securities or
>related financial instruments.
>
>
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>ess-help mailing list -- To (un)subscribe, send
>subscribe       or      unsubscribe
>(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list