Currently, all the R commands I am issuing end with proc.time() as seen here:
avail_seat_km_per_week incidents_85_99 fatal_accidents_85_99
avail_seat_km_per_week 1.0000000 0.2795383 0.4682998
incidents_85_99 0.2795383 1.0000000 0.8569911
fatal_accidents_85_99 0.4682998 0.8569911 1.0000000
> proc.time()
user system elapsed
0.115 0.021 0.124
Is there a setting which will hide the proc.time()
section?
I found the R help page for proc.time(), but I'm not seeing any thing related to my question.
EDIT
Here is the code I am using. It is the contents of my .R
file.
options("width"=200)
warningFile <- file("operation-37625.warn", "w")
errorFile <- file("operation-37625.err", "w")
tryCatch({
eval(parse(text = 'options(echo = FALSE);
X <- read.table("/Users/Parag/Public/private/stat/datasets/admin/dataset-41414.csv", sep=",", header = TRUE);
colNam <- colnames(X);
X <- cbind(X[,2], X[,3], X[,4]);
colnames(X) <- c(colNam[2], colNam[3], colNam[4]);
cor(X)'))}, error = function(cond) { writeLines(toString(cond), con = errorFile)}, warning = function(cond) { writeLines(toString(cond), con = warningFile)}
)
I hope I formatted it correctly. I am invoking the code via bash shell with:
/usr/local/bin/R CMD BATCH --vanilla --slave operation-37625.R
I don't think the contents of the file is important. It's just that I'm invoking the R via a command-line Batch statement.