R/zzz.R

Defines functions onLoad

## playwith: interactive plots in R using GTK+
##
## Copyright (c) 2007 Felix Andrews <felix@nfrac.org>
## GPL version 2 or newer

## local environment to store state of plot windows
StateEnv <- new.env()

## local environment to store user options
.PlaywithEnv <- new.env()
.PlaywithEnv$options <- list()

.onLoad <- function(libname, pkgname)
{
    playwith.options(.defaultPlaywithOptions())
    ## set gWidgets toolkit (do not bother user)
    options(guiToolkit="RGtk2")
}

Try the playwith package in your browser

Any scripts or data that you put into this service are public.

playwith documentation built on May 29, 2017, 12:28 p.m.