Skip to content

Commit

Permalink
use a check hint (globalVariables()) in favor of modifying code in re…
Browse files Browse the repository at this point in the history
…nderImage
  • Loading branch information
jmcphers committed Oct 9, 2013
1 parent 347e44f commit 6452f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/shinywrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ suppressPackageStartupMessages({
library(caTools)
library(xtable)
})
globalVariables('func')

#' Plot Output
#'
Expand Down Expand Up @@ -222,7 +223,7 @@ renderImage <- function(expr, env=parent.frame(), quoted=FALSE,
installExprFunction(expr, "func", env, quoted)

return(function(shinysession, name, ...) {
imageinfo <- get("func")()
imageinfo <- func()
# Should the file be deleted after being sent? If .deleteFile not set or if
# TRUE, then delete; otherwise don't delete.
if (deleteFile) {
Expand Down

0 comments on commit 6452f62

Please sign in to comment.