Fix CRAN warning; version 0.2.2

This commit is contained in:
Joe Cheng
2012-11-30 09:05:20 -08:00
parent 50ac13d3fd
commit 00ce52ecf7
3 changed files with 10 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
Package: shiny
Type: Package
Title: Web Application Framework for R
Version: 0.2.1
Date: 2012-11-29
Version: 0.2.2
Date: 2012-11-30
Author: RStudio, Inc.
Maintainer: Joe Cheng <joe@rstudio.org>
Description: Shiny makes it incredibly easy to build interactive web

6
NEWS
View File

@@ -1,3 +1,9 @@
shiny 0.2.2
--------------------------------------------------------------------------------
* Fix CRAN warning (assigning to global environment)
shiny 0.2.1
--------------------------------------------------------------------------------

View File

@@ -106,11 +106,9 @@ ReactiveEnvironment <- setRefClass(
)
)
.reactiveEnvironment <- ReactiveEnvironment$new()
.getReactiveEnvironment <- function() {
if (!exists('.ReactiveEnvironment', envir=.GlobalEnv, inherits=FALSE)) {
assign('.ReactiveEnvironment', ReactiveEnvironment$new(), envir=.GlobalEnv)
}
get('.ReactiveEnvironment', envir=.GlobalEnv, inherits=FALSE)
.reactiveEnvironment
}
# Causes any pending invalidations to run.