If you declare that each of your functions will be used with dynamic coverage at the beginning of the main function, as shown in the example below, it will work. Using the helpFunction asked in the question:
mainfunction <- function(importantVar1) {
It is not possible to change the source of the auxiliary functions themselves.
By the way, you might want to take a look at the link classes or the proto-package, because it seems that you are trying to do object-oriented programming through the back door.
source share