[R] Reduce/eliminate console printing time?
sdavis2 at mail.nih.gov
Fri Mar 31 19:48:24 CEST 2006
On 3/31/06 12:20 PM, "Toby Daniel Ahrens" <tahrens at stanford.edu> wrote:
> I have been writing some functions in R that are about 500-1000 lines long,
> and when I copy and paste the code into the R console, it takes about 20-30
> seconds for R to ³print² and run the code at the console command line (and
> this is just for function definition - R isn't actually executing any
> commands). If I minimize the R console so that it shows only one line at a
> time, screen ³printing² time can be cut in half, but it would be nice to
> reduce this further when I am changing the code fairly often. Is there any
> way to make the code run in R without ever printing each line in the R
> console (such as printing to a ³back² screen that isn¹t visible)?
> Thanks very much and waiting impatiently,
See ?source. Just save your R code and then source it.
More information about the R-help