For example, in the file scale_colour_r2dii.R, there is a function defined as r2dii_pal, that has an abort call and a body of r2dii_pal_impl that is defined in a different file utils.R.
What are the pros to doing this?
The main cons I notice are that context shifting (and not being able to directly see what a function does when looking at it) takes time and makes it difficult to interpret what a function does.
For example, in the file
scale_colour_r2dii.R
, there is a function defined asr2dii_pal
, that has an abort call and a body ofr2dii_pal_impl
that is defined in a different fileutils.R
.What are the pros to doing this?
The main cons I notice are that context shifting (and not being able to directly see what a function does when looking at it) takes time and makes it difficult to interpret what a function does.