relax: R editor: relax

Description Usage Arguments Details Value Author(s) References Examples

View source: R/relax.R

Description

relax is an editor for doing data analysis with R and writing reports. redit is a simple version of relax offering a reduced set of items in the head menus. red is an other name for redit.

Usage

1
2
3
  relax(file.name, no.plots = FALSE, cmds = "", but.Wizardry = "all")
  redit(file.name)
  red(file.name)

Arguments

file.name

name of report file to be loaded

no.plots

if TRUE no plots are integrated into the report text field

cmds

special operations that are evaluated on start

but.Wizardry

if "all" menu Wizardry is created; if "simple" a reduced list of commands is offered

Details

relax is written in R and Tcl/Tk. relax creates a new window (top level Tcl/Tk widget) that consists of two text fields and some buttons and menus. Text (chunks) and code (chunks) are inserted in the upper text field (report field). Code chunks are evaluated by clicking on EvalRCode. Results are shown in the lower text field (output field) and will be transferred to the report field by pressing on Insert.

Chunks are separated by separators: A line containing the character "@" at its first position indicades the beginning of a text chunk. Patterns like <<*>>= or <<code chunk name>>= define code chunk headers and introduce code chunks. The code of a code chunk is the set of R expression found between the header and the following text chunk.

redit is a wrapper function that calls relax with argument but.Wizardy="simple".

How to work with relax?

Value

Author(s)

Hans Peter Wolf

References

http://www.wiwi.uni-bielefeld.de/com/wolf/software/relax.html

Examples

1
2
3
4
5
6
7
8
### at first try: 
# > redit() 
### or 
# > relax()
### If you want to start with some old file use: 
# > redit("name of old rev-file") 
### or 
# > relax("name of old rev-file")

Example output

Loading required package: tcltk

Attaching package: 'relax'

The following object is masked from 'package:stats':

    step

The following objects are masked from 'package:utils':

    menu, str

The following objects are masked from 'package:base':

    cat, print, readline, scan

Warning message:
no DISPLAY variable so Tk is not available 

relax documentation built on May 30, 2017, 6:30 a.m.

Related to relax in relax...