In
, @Yehui said that knit uses a global environment, it confused me - My experience was that it is not. I do not really use the
knit , however, I usually go straight to PDF.
In a little experiment it seems that the
knit uses a global environment (or
knit2pdf .
The minimum example: global_test.Rnw file