Hi,
I'm starting use the R Package and I have some .R scripts. How
can I run these .R scripts.
Conrado
Welcome to a new world. You're using the _programming language_ R with
thousands of packages, and first of all you should be reading the
introduction material thoroughly :
http://cran.r-project.org/doc/manuals/R-intro.pdf
http://cran.r-project.org/doc/contrib/Owen-TheRGuide.pdf
Regarding your question : Check the help files of source :
?source
if you have a script say foo.R in a folder c:\bar, do :
source("c:/bar/foo.R")
mind the slashes instead of the backslashes. I assume you're on a
Windows system...
Cheers
Joris
On Wed, Jun 30, 2010 at 3:08 PM, <jorge.conrado at cptec.inpe.br>
wrote:>
>
> ? ? ?Hi,
>
>
> ? ? ?I'm starting use the R Package and I have some .R scripts. How
> ? ? ?can I run these .R scripts.
>
>
> ? ? ?Conrado
>
> ______________________________________________
> 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.
>
--
Joris Meys
Statistical consultant
Ghent University
Faculty of Bioscience Engineering
Department of Applied mathematics, biometrics and process control
tel : +32 9 264 59 87
Joris.Meys at Ugent.be
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
On Jun 30, 2010, at 9:08 AM, jorge.conrado at cptec.inpe.br wrote:> > > Hi, > > > I'm starting use the R Package and I have some .R scripts. How > can I run these .R scripts. >?source ... and re-read "Introduction to R".> > Conrado > > ______________________________________________ > 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.David Winsemius, MD West Hartford, CT
Please follow the posting guide and tell us minimally what your operating system is. You might find: http://cran.r-project.org/doc/manuals/R-intro.html#Scripting-with-R or http://code.google.com/p/batchfiles/#PROGRAM_LIST useful. jorge.conrado at cptec.inpe.br wrote:> > > Hi, > > > I'm starting use the R Package and I have some .R scripts. How > can I run these .R scripts. > > > Conrado > > ______________________________________________ > 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.