[ESS] Need help installing ess using M-x package-install-file
n@re@h_gurbux@n| @end|ng |rom hotm@||@com
Sat Dec 10 14:46:56 CET 2022
In my organization, IT security set up disables emacs package installation from package archives (e.g. MELPA) using M-x package-install. Therefore, I am downloading package tar files from package archives, then using M-x package-install-file command. This method has successfully installed several packages (e.g., auctex) on my computer. But with ess, I have run into problems.
Here are details. I used tar file downloaded from MELPA stable archives. Ess homepage also has zip files. I do not know how to use them to install ess.
My ess installation went without any error messages (although some files were skipped).
> M-x ess-version
> ess-version: 18.10.2 [<unknown>] (loaded from c:/Users/ngurbuxani/AppData/Roaming/.emacs.d/elpa/)
But I cannot launch R inferior process.
> M-x R
> Eager macro-expansion failure: (wrong-number-of-arguments (3 . 4) 2) [2 times]
> define-obsolete-function-alias: Wrong number of arguments: (3 . 4), 2
I am using emacs 28.2
> M-x emacs-version
> GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13
This is my ess setup in int.el file.
> ;; ESS settings
> (defun then_R_operator_ess ()
> "R - %>% operator or 'then' pipe operator for ess mode"
> (just-one-space 1)
> (insert "%>%")
> (defun then_R_operator ()
> "R - %>% operator or 'then pipe operator for inferior mode"
> (insert " %>% ")) ;no need to go to next line
> ;; Keyboard shortcuts for pipe operators do not work in terminal
> ;; Use M-x
> (use-package ess
> :ensure t
> :defer t
> (require 'ess-r-mode)
> (load "ess-autoloads")
> ;; (setq-default inferior-R-program-name "Rterm")
> (setq-default inferior-R-program-name
> "c:/Program Files/Microsoft/R Open/R-3.5.1/bin/x64/Rterm.exe")
> (define-key ess-mode-map "_" #'ess-insert-assign)
> (define-key inferior-ess-mode-map "_" #'ess-insert-assign)
> (define-key ess-mode-map (kbd "C->") 'then_R_operator_ess)
> (define-key inferior-ess-mode-map (kbd "C->") 'then_R_operator)
> (setq inferior-ess-r-help-command
> "help(\"%s\", help_type=\"text\")\n") ; display help in emacs
> (show-paren-mode) ; show matching parentheses
> (setq ess-eval-visibly 'nowait) ; emacs is available during command run
> ;; End ESS settings
More information about the ESS-help