Charlie Xia
2014-Jan-24 00:54 UTC
[R] Help with importing scripts within the same package?
Hi all, I have a very quick question yet found no answers with google. Say you when you are writing a package and have R/A.r and R/B.r, if you want to load B.r in A.r, is there an obvious way to do so? Thank you! Charlie [[alternative HTML version deleted]]
Duncan Murdoch
2014-Jan-24 02:08 UTC
[R] Help with importing scripts within the same package?
On 14-01-23 7:54 PM, Charlie Xia wrote:> Hi all, > > I have a very quick question yet found no answers with google. > Say you when you are writing a package and have R/A.r and R/B.r, if you > want to load B.r in A.r, is there an obvious way to do so?That question doesn't make sense. You should think of package code as all being executed when the package is installed. (There are some exceptions to this, e.g. functions that are called when the package is loaded.) The user may choose to call some of your functions, and they may call others, but it's not a good idea to think of the source for them as scripts. Duncan Murdoch