Creating persistent data from within an R Markdown code chunk

Hi @SDPDX! Objects you create inside RMarkdown chunks should actually persist from one chunk to the next (unless you've specifically told a chunk to run in its own session). Functions create a new scope, but chunks oughtn'r be default.

If you're seeing something otherwise, put a reprex together and we can figure out what's going wrong :slight_smile:

2 Likes