I wrote a function:
funct1<-function(input1,input2,input3){
...
}
which uses another function, funct2, i.e. funct2 is within funct1. Their codes are stored in two different files inside the same directory; respectively: funct1.R and funct2.R.
I've got the following error when launching funct1:
Error: could not find function "funct2"
How can I solve it?
source("funct1.R")andsource("funct2.R"), or you could make a package..