Overuse of global variables in R can lead to issues with ______ and ______.

  • Code maintainability
  • Code modularity
  • Naming conflicts
  • All of the above
Overuse of global variables in R can lead to issues with code maintainability, code modularity, and naming conflicts. When functions depend heavily on global variables, it becomes challenging to understand and modify the code, resulting in decreased maintainability. Additionally, code modularity is compromised as functions become tightly coupled with specific global variables. Finally, naming conflicts may arise if multiple global variables have the same name, leading to ambiguity and potential errors.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *