Include files R?

Viewed 26553

Is it possible to use include files in R like in most programming languages, for example C?

2 Answers

For completeness, including notes:

Doing this will execute the commands in the file, so be careful with it.

source("my_file.r")

or

source(file="my_file.r")
Related