knit_global: The global environment in which code chunks are evaluated

Description Usage Details

View source: R/utils.R

Description

This function makes the environment of a code chunk accessible inside a chunk.

Usage

1

Details

It returns the envir argument of knit, e.g. if we call knit() in the global environment, knit_global() returns R's global environment by default. You can call functions like ls() on this environment.


yihui/knitr documentation built on Dec. 11, 2018, 3:41 a.m.