Explain the concept of namespaces in R packages and how the :: operator is used.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what a namespace is in an R package and how the :: operator reaches a package's exported functions. Tests exports and imports, loading versus attaching, masking between packages, the ::: operator, and how package code should call its dependencies.