How do I prevent source() R code being included more than once?
-
29-10-2019 - |
문제
I have lots of R source files. For example, in both A.R
and C.R
files, B.R
is loaded via source()
. Now I'd like to use the functions in both A.R
and C.R
, how can I avoid sourcing B.R
repeatedly? Is there any include guard mechanisms similar in C/C++?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow