Re: [R] How to include files in .R?

From: Mark Wardle <mark_at_wardle.org>
Date: Fri, 04 Apr 2008 09:15:52 +0100

?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

______________________________________________
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.
Received on Fri 04 Apr 2008 - 08:18:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Apr 2008 - 08:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive