Technology Quote by Michael J. Crawley
““When you start a session in R, the variables you create are in the global environment .GlobalEnv,””
About This Quote
Source Book: Modern Applied Statistics with S-PLUS, 2nd ed., 2005
In R, each session begins with a default workspace called GlobalEnv where all user‑defined objects reside.
In simple terms: R stores new variables in the global environment by default.
Be aware of where objects live to manage memory and avoid naming conflicts.
Themes
Mood
Type
When to use this quote
- interactive R session
- script development
- teaching R
- debugging code
Key Concepts
Questions to Reflect On
- How do you organize objects for reproducible projects?
- When should you use a separate environment?
If many objects accumulate, GlobalEnv can become cluttered and slow.