Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 125

Warning – Sparingly change variables in other environments

Оглавление

While it is certainly cool and most probably efficient to change a variable in the environment above the function, it will make your code harder to read and if the function is hidden in a package it might lead to unexpected side effects. This superpower is best used sparingly.

The Big R-Book

Подняться наверх