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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -