ESS - nurmi-labs/blogger GitHub Wiki
Start Emacs and type M-x list-packages RET and M-x package-install RET ess RET.
Type C-x C-f myfile.R RET.
The *ESS* buffer should at this point indicate the editor has finished setting up ESS-mode
.
In the *myfile.R* buffer paste the following line and type C-c C-b RET or C-c M-b RET.
head(iris, n=5)
In the echo buffer you'll be prompted for your R starting project directory.
The *ESS* buffer should indicate an ess-request-for-process
has succeeded.
The *R* buffer now runs a session and the line was submitted to the REPL.
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: i586-slackware-linux-gnu (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> setwd('/home/eric/')
> head(iris, n=5)
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.1 3.5 1.4 0.2 setosa
2 4.9 3.0 1.4 0.2 setosa
3 4.7 3.2 1.3 0.2 setosa
4 4.6 3.1 1.5 0.2 setosa
5 5.0 3.6 1.4 0.2 setosa
>
Type M-x list-processes RET to open the *Process List* buffer.
Process ▼ PID Status Buffer TTY Command
R 6518 run *R* /dev/pts/1 R --no-readline
As of 30 Sept. 2022, ess is available as a snapshot on ess-devel.
To access the package archive add to your Emacs customisation file the following.
(add-to-list 'package-archives '("elpa-devel" . "https://elpa.gnu.org/devel/"))