Discussion about this post

User's avatar
Jim Hester's avatar

Another example of the 'arguments shouldn't change behavior of other arguments' that came to mind.

In `install.packages()`, the default interprets `pkgs` as a vector of package names. But if `repo == NULL` then `pkgs` is instead interpreted as a vector of filesystem paths.

Expand full comment
Shibaprasad Bhattacharya's avatar

"how do you write high-quality R code that's easy to understand"

Just a side comment on this: R codes, in general, are so easier to understand compared to other languages. :-)

Expand full comment
31 more comments...

No posts