Displaying 1 result from an estimated 1 matches for "subfunction1".
Did you mean:
subfunction
2011 Sep 06
1
several functions in one *.R file in a R package
...all the respective sub-functions to the same *.R file as their main-function and gave them names beginning with . to somehow hide the sub-functions. The result would be one *.R file in <package>/R for each 'main-function' containing something like:
mainfunction <- function() {
.subfunction1()
.subfunction2()
#...
}
.subfunction1() <- function() {
#do some stuff
}
.subfunction2() <- function() {
#do some more stuff
}
According to the way I understood the "Writing R Extensions" Manual I expected this to work. When I load the package, however, I get the error mes...