I am a new user of R and would like a bit of advice. I wish to write a short program in R that I can call up when I want to run it. How do I go about storing and recalling the particular code that I write? Many thanks Bob Banks _________________________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 7 Nov 2001, Bob Banks wrote:> I am a new user of R and would like a bit of advice. > > I wish to write a short program in R that I can call up when I want to run > it. How do I go about storing and recalling the particular code that I > write?There are different ways to do it. I usually write the code in a text file using some text editor. Then I do source("~/papers/file.r"). Then the functions in that file are available for use. Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
and if you add "echo=TRUE" and "verbose=TRUE" to the source statement you get back a log of what commands you sent and diagnostics: source("~/somedirectory/somefilewithcode.R", echo=TRUE, verbose=TRUE) Typing ?source gives yet more information. Scot -- Scot W. McNary email:smcnary at charm.net On Wed, 7 Nov 2001, Bill Simpson wrote:> > > On Wed, 7 Nov 2001, Bob Banks wrote: > > > I am a new user of R and would like a bit of advice. > > > > I wish to write a short program in R that I can call up when I want to run > > it. How do I go about storing and recalling the particular code that I > > write? > There are different ways to do it. > I usually write the code in a text file using some text editor. Then I do > source("~/papers/file.r"). Then the functions in that file are available > for use. > > Bill > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Bob Banks <banks_bob at hotmail.com> writes:>I am a new user of R and would like a bit of advice. > >I wish to write a short program in R that I can call up when I want to run >it. How do I go about storing and recalling the particular code that I >write? > >Many thanks >Bob BanksPut the function definitions, calls, &c, in a plain text file and use source() to 'run' the 'program'. Mark -- Mark Myatt -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi. I tryed to make available more memory to R, and use the --max-mem-size on the shortcut (ki'm running R131 on WinNT), but i can't set the memory limit to the size that i want, but just 2147483647 (bytes?). I have +- 1GB of virtual memory, so it's not possible to use that? Thanks Hugo Morganho -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._