playground: playground for testing R code

Description Usage Arguments Details Value Author(s) References Examples

View source: R/relax.R


playground opens a simple text window for testing R code.





if not NULL playground.envir is used for evaluation


if not NULL code is inserted in the playground


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.


playground does not have any explicit result.


Hans Peter Wolf



## playground()

Example output

Loading required package: tcltk

Attaching package: 'relax'

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


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.