Running Scripts
You can run scripts from within R Studio, in a command line, or from another program.
Running Scripts
source("FileName.R") # runs the commands in "FileName.R"
sink(record.lis) # sinks (sends) output to a file
sink() # restores output the console
Outputing Graphics to Raster files
png(file="myplot.png",bg="transparent")
plot(1:10)
rect(1, 5, 3, 7, col="white")
dev.off()
## will make myplot1.jpeg and myplot2.jpeg jpeg(file="myplot%d.jpeg") example(rect) dev.off()