Learn R Programming

relax (version 1.3.15)

playground: playground for testing R code

Description

playground opens a simple text window for testing R code.

Usage

playground(playground.envir=NULL,code=NULL)

Arguments

playground.envir
if not NULL playground.envir is used for evaluation
code
if not NULL code is inserted in the playground

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. Some times you take a sheet of 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. At the bottom of the window you find two buttons: one for activating commands and a second one for closing the window. The results will be printed on the current output device. All assignments take place in the global envirnment or if revive.env exists the new objects will be created in revive.env.

May be you need the field for taking a lot of notes without any calculations only. 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