Description Usage Arguments Details Value Author(s) References Examples
playground
opens a simple text window for testing R code.
1 | playground(playground.envir=NULL,code=NULL)
|
playground.envir |
if not NULL |
code |
if not NULL |
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
http://www.wiwi.uni-bielefeld.de/com/wolf/software/relax.html
1 | ## playground()
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.