[ESS] Cannot open load file: executable

Heinz Tuechler tuechler at gmx.at
Tue Jan 4 10:28:17 CET 2005


Tony, Rodney:

I try to sum your suggestions and my "experiments".
There are 2 attachments: the init.el and the custom.el file.
The init.el is almost identical to John Fox, 5 November 2004, Version 0.6.1
with minor adaptations to my configuration.

Starting xemacs -q resulted in no error.
For me this does not necessarily mean that the problem is due to init.el,
because the same init.el works well, as long as I use ESS 1.07 instead of
ESS 1.10.

As Rodney pointed out, I have installed only some packages, namely those
suggested as minimum in the Fox-Introduction from June, 6, 2004.
To prevent confusion I want to underline that the version of
"An Introduction to ESS + XEmacs for Windows Users of R", John Fox,
McMaster University, Revised: 7 December 2004 does state that it "is
simplest (and safest) to install all of the available packages."

So I added sh-script 1.18, as Rodney suggested and now it seems to work
properly.

The seemingly working configuration is:
                 Latest Installed
  Package name   Vers.  Vers.   Description
================================================================
  dired           1.15   1.15   Manage file systems.
  ediff           1.50   1.50   Interface over GNU patch.
  edit-utils      2.14   2.14   Miscellaneous editor extensions,
  efs             1.32   1.32   Treat files on remote systems th
  ess             1.10   1.10   ESS: Emacs Speaks Statistics.
  fsf-compat      1.14   1.14   FSF Emacs compatibility files.
  mail-lib        1.67   1.67   Fundamental lisp files for provi
  pc              1.26   1.26   PC style interface emulation.
  sh-script       1.18   1.18   Support for editing shell script
  speedbar        1.27   1.27   Provides a separate frame with c
  vc              1.38   1.38   Version Control for Free systems
  xemacs-base     1.87   1.87   Fundamental XEmacs support, you
================================================================

Many thanks to Tony and Rodney

Heinz





At 17:07 03.01.2005 +0100, you wrote:
>Could you try: 
>
>xemacs -q
>
>and see if you get the error?   If so, it's part of your system installation
>
>If not, it's part of your .emacs or .xemacs/init.el  files (and I
>suspect from what you sent, it is the latter).  Could you send the
>xemacs/.xemacs/init.el file, if it's not sensitive?
>
>Let me know what happens!
>
>best,-
>tony
>
>
>
>On Mon, 03 Jan 2005 12:30:20 +0100, Heinz Tuechler <tuechler at gmx.at> wrote:
>> Dear Tony!
>> 
>> Thanks for your answer. For now, I reply just to you.
>> I tried the following, always typing at the command-line of the Norton
>> Commander:
>> > xemacs
>> consequence: in Xemacs I have the buffers: ess (empty), scratch (empty) and
>> warnings (content:
>> (1) (initialization/error) An error has occurred while loading
>> d:\xemacs\.xemacs\init.el:
>> Cannot open load file: executable
>> To ensure normal operation, you should investigate the cause of the error
>> in your initialization file and remove it.  Use the `-debug-init' option to
>> XEmacs to view a complete error backtrace.)
>> 
>> > xemacs -debug-init
>> consequence: in Xemacs I have the buffers: ess (empty), scratch (empty)
>> the minibuffer displays: Cannot open load file: executable
>> 
>> > xemacs --debug-init
>> consequence: in Xemacs I have the buffers: ess (empty), scratch (empty),
>> --debug-init (empty) and
>> warnings (content: same as above)
>> 
>> So I don't know what should happen when I start xemacs with -debug-init or
>> --debug-init. It seems to have no helpful consequence.
>> 
>> Maybe you can give me a hint, where to find a description of the
>> startup-options of xemacs. I remember vaguely that I found once in all the
>> material I read some information, but I did not find it again.
>> 
>> As I said before, this is no urgent problem to me. I am using Xemacs only
>> in connection with R and the older version seems to work well. I updated
>> mainly for curiosity to see if the underscore is now handled in a different
>> way, since R does not more use it as assignment operator.
>> 
>> Thanks
>> 
>> Heinz
>> 
>> 
>> At 14:03 02.01.2005 +0100, you wrote:
>> >Start XEmacs with
>> >
>> >
>> >xemacs -debug-init   (can't recall if it's --debug-init  or -debug-init)
>> >
>> >and mail us the buffer for debugging (or perhaps, just to me or
>> >ess-bugs at stat.math.ethz.ch).
>> >
>> >Sorry for delays, it's been a busy holiday season.
>> >
>> >best,
>> >-tony
>> >
>> >
>> >
>> >On Thu, 30 Dec 2004 12:55:43 +0100, Heinz Tuechler <tuechler at gmx.at>
wrote:
>> >> Using Xemacs version 21.4 - April 2001 I had no problem until I
updated the
>> >> installed packages.
>> >> Now I receive the error message:
>> >> (1) (initialization/error) An error has occurred while loading
>> >> d:\xemacs\.xemacs\init.el:
>> >>
>> >> Cannot open load file: executable
>> >>
>> >> To ensure normal operation, you should investigate the cause of the
error
>> >> in your initialization file and remove it.  Use the `-debug-init'
option to
>> >> XEmacs to view a complete error backtrace.
>> >>
>> >> I have very little experience with Xemacs, therefore my question is:
>> >> How do I " Use the `-debug-init' option"?
>> >> more precisely
>> >> Where can I find a documentation that explains how to invoke this
option.
>> >>
>> >> Just in case, someone wants to comment on the error, here is more
>> information.
>> >>
>> >> I use Xemacs version 21.4; April 2001 with the sample init.el file
for ess
>> >> + Xemacs under MS Windows by  John Fox 5 November 2004 Version 0.6.1
>> >> OS: Windows98SE / German
>> >>
>> >> Installed packages after update are:
>> >>                  Latest Installed
>> >>   Package name   Vers.  Vers.   Description
>> >> ================================================================
>> >>   dired           1.15   1.15   Manage file systems.
>> >>   ediff           1.50   1.50   Interface over GNU patch.
>> >>   edit-utils      2.14   2.14   Miscellaneous editor extensions,
>> >>   efs             1.32   1.32   Treat files on remote systems th
>> >>   ess             1.10   1.10   ESS: Emacs Speaks Statistics.
>> >>   fsf-compat      1.14   1.14   FSF Emacs compatibility files.
>> >>   mail-lib        1.67   1.67   Fundamental lisp files for provi
>> >>   pc              1.26   1.26   PC style interface emulation.
>> >>   speedbar        1.27   1.27   Provides a separate frame with c
>> >>   vc              1.38   1.38   Version Control for Free systems
>> >>   xemacs-base     1.87   1.87   Fundamental XEmacs support, you
>> >> ================================================================
>> >>
>> >> Installed packages after before were:
>> >>                  Latest Installed
>> >>   Package name   Vers.  Vers.   Description
>> >> ================================================================
>> >>   dired           1.12   1.15   Manage file systems.
>> >>   ediff           1.41   1.49   Interface over GNU patch.
>> >>   edit-utils      1.89   2.11   Miscellaneous editor extensions,
>> >>   efs             1.29   1.32   Treat files on remote systems th
>> >>   ess             1.02   1.07   ESS: Emacs Speaks Statistics.
>> >>   fsf-compat      1.11   1.14   FSF Emacs compatibility files.
>> >>   mail-lib        1.47   1.64   Fundamental lisp files for provi
>> >>   pc              1.25   1.26   PC style interface emulation.
>> >>   speedbar        1.23   1.27   Provides a separate frame with c
>> >>   vc              1.33   1.38   Version Control for Free systems
>> >>   xemacs-base     1.66   1.84   Fundamental XEmacs support, you
>> >> ================================================================
>> >>
>> >> Since I am using the identical init.el-file I don't think that the error
>> >> has to do with this file.
>> >> After some experiments I suspect that it could have to do with the file
>> >> essd-sas.elc.
>> >>
>> >> For the next days I will have little access to the internet, so please
>> >> excuse me if I do not respond immediately. This is also the cause why
I did
>> >> not search a lot in archives.
>> >>
>> >> Thanks in advance
>> >>
>> >> Heinz Tüchler
>> >>
>> >> ______________________________________________
>> >> ESS-help at stat.math.ethz.ch mailing list
>> >> https://stat.ethz.ch/mailman/listinfo/ess-help
>> >>
>> >
>> >
>> >--
>> >
>> >best,
>> >-tony
>> >
>> >---
>> >A.J. Rossini
>> >blindglobe at gmail.com
>> >
>> >
>> 
>> 
>
>
>-- 
>
>best,
>-tony
>
>---
>A.J. Rossini
>blindglobe at gmail.com
>
>
-------------- next part --------------
;;;------------------------------------------------------------*
;;; sample init.el file for ess + Xemacs under MS Windows      *
;;;        John Fox                                            *
;;;        5 November 2004      Version 0.6.1                *
;;;------------------------------------------------------------*

; Aenderungen von HT mit HT gekennzeichnet. ; HT 17. 9.2004

;; This file goes in the .xemacs subdirectory of your HOME directory
;;   In Windows 9x, set the HOME environment variable, e.g., set HOME=c:\
;;   In Windows NT, 2000, or XP, use location pointed to by HOMEDRIVE, HOMEPATH
;;   or set the HOME environment variable

;;;----------------------------------------------------------------------------------------------

;;; configuration options:

;; change to suit

    ;; Edit to reflect the location of the ESS icons

   ;(setq-default ess-icon-directory "C:/Program Files/XEmacs/xemacs-packages/etc/ess")
    (setq-default ess-icon-directory "d:/XEmacs/xemacs-packages/etc/ess") ; HT 30.12.2004

    ;; Uncomment the following line (i.e., remove the initial semicolon) if the R bin directory is not on the search path.
    ;;   Edit to reflect the location of rterm.exe (e.g., change xxxx to your R version number, such as 2000).

 ;    (setq-default inferior-R-program-name "c:/R/rwxxxx/bin/rterm.exe")
      (setq-default inferior-R-program-name "d:/rw/bin/rterm.exe") ; HT 30.12.2004

    ;; If pc-behaviour-level > 0, backspace key, marked-region replace, etc. are as in Windows.
    ;; If pc-behaviour-level > 1, in addition Windows editing keys C-x, C-c, C-v are defined.

    (defconst pc-behaviour-level 1) ; 1 = C-x, C-c, C-v are are turned *off* ; by default wie in altem init HT 30.12.2004

    ;; If enable-R-menus > 0, then unproblematic R menu items are enabled.
    ;; If enable-R-menus > 1, then in addition menu items that call GUI functions are enabled.
    ;;    Recommended default is 1; you can use 2 if it doesn't hang R

   ;(defconst enable-R-menus 1) ; 2 = all menu items enabled ; FOX-Default
    (defconst enable-R-menus 0) ; 2 = all menu items enabled ; HT 17. 9.2004

    ;; If dedicated-R-window is t then buffers other than the R-process buffer
    ;;   cannot be displayed in the lower window

   ; (defconst dedicated-R-window t) ; t = dedicated window ; FOX-Default
    (defconst dedicated-R-window nil) ; t = dedicated window ; HT 25.10.2004

    ;; if scratch-in-S-mode is t then the *scratch* buffer will be put in ESS[S] mode

    (defconst scratch-in-S-mode nil); nil = *scratch* buffer not in ESS[S] mode

    ;; if hotkeys is t then the key combinations C-l, C-p, C-r, C-f will send current line
    ;;   current paragraph, or current region, or current function to R

   ;(defconst hotkeys nil); nil = don't use hotkeys
    (defconst hotkeys t  ); nil = don't use hotkeys ; HT 17. 9.2004

    ;; if use-html-help is t then the htmlhelp option is set

    (defconst use-html-help t); t = use html help

;;;----------------------------------------------------------------------------------------------
;;; function definitions
;;; (Many of these functions aren't currently used -- kept here for future development

(defun ess-eval-paragraph-and-go (vis)
  "Send the current paragraph to the inferior ESS process and switch to the
    process buffer. Arg has same meaning as for `ess-eval-region'."
  (interactive "P")
  (ess-eval-paragraph vis)
  (ess-switch-to-ESS t))

(defun stop-R ()
    "Interrupt R process in lower window."
    (interactive)
    (select-window win2)
    (comint-interrupt-subjob)
    (select-window win1))

(defun send-line-to-R (vis)
    "Send line to R process in lower window, position output."
    (interactive "P")
    (ess-eval-line-and-go vis)
    (comint-show-maximum-output)
    (select-window win1))

(defun send-para-to-R (vis)
    "Send paragraph to R process in lower window, position output."
    (interactive "P")
    (ess-eval-paragraph-and-go vis)
    (comint-show-maximum-output)
    (select-window win1))

(defun send-function-to-R (vis)
    "Send function to R process in lower window, position output."
    (interactive "P")
    (ess-eval-function-and-go vis)
    (comint-show-maximum-output)
    (select-window win1))

(defun send-region-to-R (start end vis)
    "Send region to R process in lower window, position output."
    (interactive "r\nP")
    (ess-eval-region-and-go start end vis)
    (comint-show-maximum-output)
    (select-window win1))

(defun source-to-R ()
    "Source buffer to R process lower window, position output."
    (interactive)
    (source-buffer-to-R)
    (comint-show-maximum-output)
    (select-window win1))

(defun source-buffer-to-R ()
"Function ARGS: ()
Source the file corresponding to the source buffer into the R process buffer."
(interactive)
  (let ((filename (buffer-file-name)))
    (if (not(or (string-find filename ".r" 0)
        (string-find filename ".R" 0)
        (string-find filename ".s" 0)
        (string-find filename ".S" 0)
        (string-find filename ".q" 0)))
    (error "Can't source a non-R file or the *scratch* buffer."))
    (ess-load-file filename)
    (select-window win1)))

(defun start-R ()
"Start R process and name windows"
    (R)
    (setq win2 (selected-window))  ; win2 is on bottom
    (select-window win2)
    (if dedicated-R-window (set-window-dedicated-p win2 t)) ; window win2 dedicated to R process
    (other-window -1)
    (setq win1 (selected-window))  ; win1 is on top
    (select-window win1) ; back to win1
    (if scratch-in-S-mode (R-mode))) ; put *scratch* buffer in R mode

;;;----------------------------------------------------------------------------------------------

(setq directory-sep-char ?/ )

;;; Add an R submenu below the ESS menu

(defun menu-load-package ()
 "Load package from a library."
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "{.pkg <- select.list(sort(.packages(all.available = TRUE))); if(nchar(.pkg)) library(.pkg, character.only=TRUE); rm(.pkg)}\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-install-package-CRAN ()
  "Install packages from CRAN."
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "{.a <- CRAN.packages(); install.packages(select.list(.a[,1],,TRUE), .libPaths()[1], available=.a); rm(.a)}\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-install-package-zip ()
  "Install packages from local zip files."
  (interactive)
  (select-window win2)
  (let ((file
           (expand-file-name
            (read-file-name "Select zip file to install: " nil nil t))))
    (ess-eval-linewise
     (concat "install.packages('" file "', .libPaths()[1], CRAN = NULL)\n")))
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-update-packages-CRAN ()
  "Update packages from CRAN"
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "update.packages()\n")
  (comint-show-maximum-output)
  (select-window win1))

    ;; argonaut added help menus 4/2004

(defun menu-help-html-help ()
  "HTML Help"
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "help.start(update=F)\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-help-search-help ()
  "Search help..."
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    ".ans <- winDialogString('Search help', ''); if (!is.null(.ans) && (.ans != '')) help.search(.ans) else rm(.ans)\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-help-R-functions ()
  "R functions(text)..."
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    ".ans <- winDialogString('Help on', ''); if (!is.null(.ans) && (.ans != '')) help(.ans) else rm(.ans)\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-help-apropos ()
  "Apropos..."
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    ".ans <- winDialogString('Apropos', ''); if (!is.null(.ans) && (.ans != '')) apropos(.ans) else rm(.ans)\n")
  (comint-show-maximum-output)
  (select-window win1))

    ;; the following two menu items were contributed by Henric Nilsson

(defun menu-install-package-BIOC ()
  "Install packages from Bioconductor."
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "{.a <- CRAN.packages(CRAN=getOption(\"BIOC\")); install.packages(select.list(.a[,1],,TRUE), .libPaths()[1], available=.a, CRAN=getOption(\"BIOC\")); rm(.a)}\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-update-packages-BIOC ()
  "Update packages from Bioconductor"
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "update.packages(CRAN=getOption(\"BIOC\"))\n")
  (comint-show-maximum-output)
  (select-window win1))


(defun menu-remove-all-objects ()
  "Remove all R objects"
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    ".ans <- winDialog('yesno', 'Are you sure?'); if (.ans == 'YES') rm(list=ls(all=TRUE)) else rm(.ans)\n")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-list-objects ()
  "List R objects"
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "ls()")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-display-path ()
  "Display R path"
  (interactive)
  (select-window win2)
  (ess-eval-linewise
    "search()")
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-source-R-code ()
  "Source a file into R."
  (interactive)
  (select-window win2)
  (let ((file
           (expand-file-name
            (read-file-name "Select file to source: " nil nil t))))
    (ess-eval-linewise
     (concat "source('" file "')\n")))
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-save-workspace ()
  "Save a workspace as a file."
  (interactive)
  (select-window win2)
  (let ((file
           (expand-file-name
            (read-file-name "File containing workspace: " nil nil nil ".RData"))))
    (ess-eval-linewise
     (concat "save.image('" file "')\n")))
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-load-workspace ()
  "Load a workspace into R."
  (interactive)
  (select-window win2)
  (let ((file
           (expand-file-name
            (read-file-name "File containing workspace: " nil nil t))))
    (ess-eval-linewise
     (concat "load('" file "')\n")))
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-change-directory ()
  "Change working directory."
  (interactive)
  (select-window win2)
  (let ((file
           (expand-file-name
        (read-directory-name "Change working directory to: "  ))))
    (if (not (equalp file "Quit"))
      (ess-eval-linewise
        (concat "setwd('" file "')\n"))))
  (comint-show-maximum-output)
  (select-window win1))

(defun menu-quit-R-and-save ()
  "quit R saving workspace"
  (interactive)
  (select-window win2)
  (ess-eval-linewise "quit('yes')\n")
  (sleep-for 1)
  (select-window win1)
  (save-buffers-kill-emacs))

(defun menu-quit-R ()
  "quit R without saving workspace"
  (interactive)
  (select-window win2)
  (ess-eval-linewise "quit('no')\n")
  (sleep-for 1)
  (select-window win1)
  (save-buffers-kill-emacs))


(defun R-menu ()
"Hook to install R menu and sub-menus"
  (add-menu-item '("ESS" "R") "Interrupt computation" 'stop-R
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "File") "Source R code ..." 'menu-source-R-code
    (> enable-R-menus 0) "Eval and Go")
  (add-menu-item '("ESS" "R" "File") "Save workspace ..." 'menu-save-workspace
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "File") "Load workspace ..." 'menu-load-workspace
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "File") "Change R directory ..." 'menu-change-directory
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "Packages") "Load package ..." 'menu-load-package
    (> enable-R-menus 1))
  (add-menu-item '("ESS" "R" "Packages") "Install packages from CRAN ..." 'menu-install-package-CRAN
    (> enable-R-menus 1))

;; argonaut added 4/2004
  (add-menu-item '("ESS" "R" "Help") "Html Help" 'menu-help-html-help
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "Help") "Search help..." 'menu-help-search-help
    (> enable-R-menus 1))
  (add-menu-item '("ESS" "R" "Help") "R functions(text)..." 'menu-help-R-functions
    (> enable-R-menus 1))
  (add-menu-item '("ESS" "R" "Help") "Apropos..." 'menu-help-apropos
    (> enable-R-menus 1))
;;
  (add-menu-item '("ESS" "R" "Packages") "Install packages from Bioconductor ..." 'menu-install-package-BIOC
    (> enable-R-menus 1))
  (add-menu-item '("ESS" "R" "Packages") "Install packages from local zip files ..." 'menu-install-package-zip
    (> enable-R-menus 1))
  (add-menu-item '("ESS" "R" "Packages") "Update packages from CRAN" 'menu-update-packages-CRAN
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "Packages") "Update packages from Bioconductor" 'menu-update-packages-BIOC
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "Misc.") "Remove all objects" 'menu-remove-all-objects
    (> enable-R-menus 1))
  (add-menu-item '("ESS" "R" "Misc.") "List objects" 'menu-list-objects
    (> enable-R-menus 0))
  (add-menu-item '("ESS" "R" "Misc.") "Display path" 'menu-display-path
    (> enable-R-menus 0))
  (delete-menu-item '("ESS" "----")) ; necessary to avoid extra separating lines
  (add-menu-button '("ESS") "----" "R")
  (add-menu-item '("File" "Exit R/XEmacs") "Quit saving R workspace" 'menu-quit-R-and-save
    (> enable-R-menus 0))
  (add-menu-item '("File" "Exit R/XEmacs") "Just quit" 'menu-quit-R
    (> enable-R-menus 0))
  (delete-menu-item '("File" "----")) ; necessary to avoid extra separating lines
  (add-menu-button '("File") "----" "Exit R/XEmacs"))

(add-hook 'ess-mode-hook 'R-menu)

;;; some customizations

(defconst R-editor "winclient.exe")  ; emacs client process

;;; (defconst initial-scratch-message nil) ; empty *scratch* buffer

(defconst startup-message-timeout 1) ; display the splash frame very briefly

(setq frame-title-format "%S: %f") ; show path along with file name

(require 'ess-site) ; load ess

(setq ess-ask-for-ess-directory nil) ; do not prompt for directory

;; the following adds to the mode association list to treat .Rhistory files as R source files

(setq auto-mode-alist
  (append
   '(("\\.[rR]history\\'" . R-mode))
   auto-mode-alist))

;;; the following section makes XEmacs behave more like a Windows editor
;;; in ess and inferior-ess modes

(defun pc-on ()
"Turn on innocuous pc editing behaviours"
  (require 'pending-del)
  (pending-delete-mode t) ; can type over or delete selected text
  (require 's-region)
  (s-region-bind-cua)) ; some Windows editing keys

(if (> pc-behaviour-level 0)
    (progn
      (define-key ess-mode-map [delete] 'delete-char) ; delete key deletes character under cursor
      (define-key inferior-ess-mode-map [delete] 'delete-char) ; delete key deletes character under cursor
      (add-hook 'ess-mode-hook 'pc-on) ; innocuous Windows editing behaviours
      (add-hook 'inferior-ess-mode-hook 'pc-on)))

(if (> pc-behaviour-level 1) ; define Windows editing keys
    (progn
      (define-key ess-mode-map "\C-x" 'toolbar-cut)
      (define-key ess-mode-map "\C-c" 'toolbar-copy)
      (define-key ess-mode-map "\C-v" 'toolbar-paste)
      (define-key inferior-ess-mode-map "\C-x" 'toolbar-cut)
      (define-key inferior-ess-mode-map "\C-c" 'toolbar-copy)
      (define-key inferior-ess-mode-map "\C-v" 'toolbar-paste)))

(if hotkeys ; define hotkeys
   (progn
     (define-key ess-mode-map "\C-l" 'send-line-to-R)
     (define-key ess-mode-map "\C-p" 'send-para-to-R)
     (define-key ess-mode-map "\C-r" 'send-region-to-R)
     (define-key ess-mode-map "\C-f" 'send-function-to-R)))

;;; use HTML help if use-html-help is t

(defun set-html-help ()
"Use HTML help"
    (ess-eval-linewise "options(chmhelp=FALSE)")
    (sit-for 1)
    (ess-eval-linewise "options(htmlhelp=TRUE)")
    (sit-for 1))

(if use-html-help
    (add-hook 'ess-post-run-hook 'set-html-help))

(start-R)
-------------- next part --------------
(custom-set-variables
 '(paren-mode (quote blink-paren) nil (paren))
 '(column-number-mode t)
 '(ess-S-assign "_")
 '(bar-cursor 2)
 '(ess-loop-timeout 600000)
 '(toolbar-visible-p nil)
 '(menu-accelerator-enabled (quote menu-force) t)
 '(exec-path (quote ("C:\\W\\" "C:\\W\\COMMAND\\" "S:\\H\\" "D:\\T\\" "D:\\XEMACS\\.XEMACS\\" "D:\\RW\\BIN\\" "D:\\XEMACS\\XEMACS-21.4.13\\i586-pc-win32\\"))))
(custom-set-faces)


(setq minibuffer-max-depth nil)
-------------- next part --------------



More information about the ESS-help mailing list