--- the all-in-one editor for data analysis
and easy creation of LaTeX based documents with R
-> relax icon:

-> Overview
-> How to work with relax? -- writing reports
-> Other uses of relax?
-- modifying your computations, data sets, interactive papers for presentation,
programming
-> Technical remarks
-> Installation
relax is designed for statisticians allowing them
to write statistical reports without switching between
text processing and R.
relax creates a window with a report field.
The report field enables you to enter R expressions
as well as pieces of text to document your ideas.
Computations and plots can be included quickly.
After finishing your work the sequence of text chunks, code chunks and
integrated graphics and/or R-output will constitute the basis of your work.
To achieve a higher quality relax integrates LaTeX compilation for
professional formatting and pretty printing.
relax is based on the literate programming concept
proposed by D.E. Knuth and the noweb system written by Norman Ramsey -- see:
literate programming, literate programming,
Donald E. Knuth,
noweb.
Here you find a poster describing relax. Here is a snapshot: ...
relax?relax?relax you activate the editor by loading the
package relax and starting the R function relax():
relax() creates a new window consisting of two text fields and
some buttons and menus.
EvalRCode" (or Alt+E).
relax will extract the code and
R will try to run it.
Results are shown in the lower text field of relax (output field --
in a beach-like color).
Insert the contents of the output field are
moved to the report field.
SavePlot generates a postscript copy and
a jpeg copy of the current graphics device and inserts LaTeX / html
commands in order to include the graphics file
for further printing in LaTeX.
RemoveOut",
"TrashROutput" and "PlanRCode"?RemoveOut clears the output field.
TrashROutput deletes the inserted
R output of the report field the mouse is pointing at.
SaveReport
of the File-menu you are asked to choose a file name.
Then relax will generate two files:
a file with extension .rev and a "html" file.
The second file can be viewed by a browser.
example report file: pdf format
relax most effectively --
gaining expertise fast.rev"-file.
Repeat the steps of the data analysis of your report.
Interactively check the results through relax.
Integrate new ideas -- modify the code chunks or append new
expressions to enhance the analysis!
.rev"-file containing
your basic ideas or simply use a similar .rev file from the past
that just needs to be modified, 2. assign a data set to the
"formal" variable of the code chunks,
3. evaluate the code chunks (EvalRCode).
relax.rev file.
Load the source file, select the code chunks you need and simply evaluate
them as a part of your discussion. This is an easy an impressive way to
keep people interested and in touch with the subject. Comments or
critics can be "felt and seen" without delay by
modifying or extending the code spontaneously.
Code chunks with name "start"
(code chunk header: ‹‹start››=) will
be evaluated at startup relax.
This enables you to save the definitions of
your own programmed functions in an appendix in "start" code chunks and you can use these at once in the first code chunk of the ".rev"-file.
Remark: strings in text chunks that are bracketed by
[[...]] will be formatted as code.
Sweave is based on the noweb system.
Consequently, you can construct an Sweave file by relax interactively.
relax is written in R and Tcl/Ttk.
To make it work the package relax needs to be installed in R.
Some local configuration settings are found in the
file "your-R-library/relax/config/settings.cfg".
relax checks your report in an environment named
"revive.env". If this variable is not found the environment
is generated. Otherwise it is used to evalute the code chunks.
After exiting relax you can have a look at "revive.env" and change the objects of "revive.env" by hand.
The internal variables of relax are stored in a second environment.
It can be found via "revive.sys" stored in environment "revive.env".
windows:
relax_1.081.zip (>=R-2.5.0)
contains the newest installed version of relax.
The .zip file has to be extracted into your local R library --
for example: .../rw2040/library/.
Some configuration settings are stored in .../relax/config/settings.relax.
Feel free to play around with the settings,
but don't cry when relax
doesn't work properly anymore.
linux :
relax_1.081.tar.gz (>=R-2.5.0)
contain the newest versions of relax.
This .gz file has to be installed by
R CMD INSTALL
\renewcommand{\textchunkcommands}{\normalsize},
\renewcommand{\codechunkcommands}{\small}
relax_1.083.zip (>=R-2.5.0)
relax_1.083.tar.gz (>=R-2.5.0)
To be able to show copies of R-plots in the report field the "Img" package for
Tcl/Tk needs to be installed. This is no problem with the windows versions of relax.
Linux users have to install "Img" (see:
img.html)
and have to manually correct the path in the assignment
of path.tcltk.package.img="/usr/local/lib" in
".../relax/config/settings.cfg".
windows :R-2.3.0 (via CRAN -- TU Wien)
relax_1.00.zip (R-2.1.0, R-2.2.0)
relax_1.00.tar.gz (R-2.1.0, R-2.2.0)
relax_1.04.zip (>=R-2.2.0)
relax_1.04.tar.gz (>=R-2.2.0)
relax_1.06.zip (>=R-2.2.0)
relax_1.06.tar.gz (>=R-2.2.0)
relax_1.07.zip (>=R-2.2.0)
relax_1.07.tar.gz (>=R-2.2.0)
relax and relax -- P. Wolf, M. Hempelmann
relax is free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation; either version 2,
or (at your option) any later version.
relax is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
A copy of the GNU General Public License is available via WWW at
http://www.gnu.org/copyleft/gpl.html