Variables are created in the global environment so that they are
accessible to all chunks. For cached chunks, they are created in an
empty environment first and copied to globalenv() later so that knitr
knows which variables are newly created and can cache them
accordingly.
Currently there is no way to disable knitr using globalenv(). What is
your concern on this?
Regards,
Yihui
--
Yihui Xie <
xiey...@gmail.com>
Phone:
515-294-2465 Web:
http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA