Displaying 1 result from an estimated 1 matches for "mysubtest".
Did you mean:
mysubset
2009 Nov 10
1
source() vs attach()0
Hello,
After hours of googling I could not resolve the following (although it
seems simple):
I would like to put subfunctions in a separate .R file that is then
called with source() from inside several "main" functions. A crude
example would be as follows:
**** file subtest.R **********
subtest <- function() {
foo <<- foo+1
}
******************************
*** main