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++?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top