[R] How to include files in .R?
Mark Wardle
mark at wardle.org
Fri Apr 4 10:15:52 CEST 2008
?source
bw
Mark
On 04/04/2008, Jonas Stein <news at jonasstein.de> wrote:
> Hi,
>
> may be its a very simple question, but i did not find any documentation
> about a 'include' command or something like this.
>
> I have to set many constants in my R-files and want to move all these to
> one file, so that i can reuse it in all other R-files.
>
> Something like
>
> include("~/R/myconstants.R")
>
> kind regards,
>
> --
> Jonas Stein <news at jonasstein.de>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
More information about the R-help
mailing list