[R] how to update R files included as"source" ?

Erik Iverson eriki at ccbr.umn.edu
Mon Mar 29 17:35:46 CEST 2010


Hello,

arnaud chozo wrote:
> Hi all,
> 
> I have a main file main.R in which I include some other R files. For
> example, in main.R I have: source("functions.R").
> When I modify the file "functions.R", I'd like R to take into account the
> changes and to reload the file functions.R when I run main.R
> Is it possible?
> 

I don't understand.

You source a functions.R file from main.R. When you "run" main.R, 
whatever is in the functions.R file will be sourced.

What is happening that is different than you expect?

--Erik



More information about the R-help mailing list