how to do R includes -
possible duplicate:
include files r?
i cannot find useful documentation r file including r file. r short word ignored search engines.
i have file.r , include.r , want this:
// in include.r want load libraries library(phpserialize) // in file.r include previous file , use directly given library include(include.r) x = rnorm(10) y = phpserialize(x)
maybe looking source(file="include.r")
. note source()
executes commands in specified file, not (like php include) paste contents of file including file. not important in case.
Comments
Post a Comment