rstudio/rmarkdown — pull request #225 by yihui (2014-08-20 20:23:38+00:00)
Title: use parent.frame() as the default environment for knitting shiny documents

otherwise the parent.frame() when knit() is really called is an environment inside rmarkdown_shiny_server(), which does not make much sense