Learn R Programming

relax (version 1.3.5)

playground: playground for testing R code

Description

playground opens a simple text window for testing R code.

Usage

playground(playground.env=NULL)

Arguments

playground.env
if not NULL playground.env is used for evaluation

Value

  • playground does not have any explicit result.

Details

Besides your usual work you often need little tools for writing memos or calculating simple arithmethic operations. Often you take some paper, a pencil or your desk calculator to go ahead. And there are situations in which you would like to have furthers fields for testing simple R codes. Perhaps you will start another R session in parallel for executing your R statements.

playground() is an alternative approach to this problem. After starting the function playground a text field (in a Tcl/Tk widget) is created and you are allow put some R commands into this field. Below the text field you find two buttoms: one for activating commands and a second one for closing the widget. The results will be printed on the current output device. All assignments took place in the global envirnment or if revive.env exists the new objects are created in this environment.

It may be you need the field only for taking a lot of notes without any calculations. Anyway, it is no problem to call playground several times.

playground is in an experimental state yet. So it may be changed later on.

References

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

Examples

Run this code
## playground()

Run the code above in your browser using DataLab