Possible duplicate:
Include R files?
I can not find useful documentation about the R file, including the other R file. R is a very short word that is ignored by search engines.
I have a .R file and include.R, and I want to do something like this:
// in include.R I want to load libraries
library(phpSerialize)
// in file.R include the previous file and use directly the given library
include(include.R)
x = rnorm(10)
y = phpSerialize(x)
source
share