Please excuse me if this is a very basic question and I am just misunderstanding the basic structure of R. Right now, I am writing everything in a buffer (emacs) and then copying it into R when it is correct. Is there a way to save a file of commands and then just type the file name or something in R and have the commands executed within R? Anna
See ?source. On May 23, 2003 10:41 am, Anna H. Pryor wrote:> Please excuse me if this is a very basic question and I am just > misunderstanding the basic structure of R. > > Right now, I am writing everything in a buffer (emacs) and then copying > it into R when it is correct. Is there a way to save a file of commands > and then just type the file name or something in R and have the commands > executed within R? > > Anna > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
"Anna H. Pryor" <anna at ptolemy.arc.nasa.gov> writes:> Please excuse me if this is a very basic question and I am just > misunderstanding the basic structure of R. > > Right now, I am writing everything in a buffer (emacs) and then copying it > into R when it is correct. Is there a way to save a file of commands and > then just type the file name or something in R and have the commands executed > within R?source("filename") -- A.J. Rossini rossini at u.washington.edu http://software.biostat.washington.edu/ Biostatistics, U Washington and Fred Hutchinson Cancer Research Center FHCRC:Tu: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW : Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX CONFIDENTIALITY NOTICE: This e-mail message and any attachments ... {{dropped}}
When you using windows, imho R-Winedt supports you very nice to archive your code and especially for me - working with "some line code snippets". http://cran.r-project.org/contrib/extra/winedt/ christian ----- Original Message ----- From: "Anna H. Pryor" <anna at ptolemy.arc.nasa.gov> To: <r-help at stat.math.ethz.ch> Sent: Friday, May 23, 2003 7:41 PM Subject: [R] calling files of commands in R> > Please excuse me if this is a very basic question and I am just > misunderstanding the basic structure of R. > > Right now, I am writing everything in a buffer (emacs) and then copying it > into R when it is correct. Is there a way to save a file of commands and > then just type the file name or something in R and have the commandsexecuted> within R? > > Anna > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help