knit_global: The global environment in which code chunks are evaluated

View source: R/utils.R

knit_globalR Documentation

The global environment in which code chunks are evaluated

Description

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

Usage

knit_global()

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.


knitr documentation built on Nov. 2, 2023, 5:49 p.m.