> I've used R for some data visualization in the past, but I'm not sure I was fully aware how R scopes work.
You might be interested in this description, then: https://adv-r.hadley.nz/environments.html
You might be interested in this description, then: https://adv-r.hadley.nz/environments.html