What is the search path in R and how does attaching packages affect variable resolution?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Explain what the search path is in R and how attaching packages with library() changes which object a name refers to. Tests your understanding of environments, masking between packages, the pkg::name operator and how namespaces affect lookup inside package code.