Skip to content
Prev 65378 / 398513 Next

Rconsole wishlist

Sorry, yes, Rgui under WinXP (SP2). But while Windows date stamps the
history file
size isdir mode               mtime               ctime
.Rhistory 5377 FALSE  666 2005-03-04 10:37:52 2005-03-04 10:37:52
                        atime
.Rhistory 2005-03-04 13:54:11

the problem is that there can be multiple sessions stored in .Rhistory and
the session dates aren't stored there. Moreover, it seems to me that the
history buffer can also overflow without warning after long sessions or many
repeated sessions and so that you can inadvertently lose parts of your
command log. (Is this right, anyone?) Perhaps it would be preferable for R
to save each session's command history in a separate history file, along the
lines of 

.Last <- function() {
savefilename <- paste("Rhistory",date())
savefilename <- gsub(" ","_",savefilename)
savefilename <- gsub(":",".",savefilename)
savefilename <- paste(savefilename,".txt",sep="")
if(interactive())  try(savehistory(savefilename))
cat("Current history saved in file: ",savefilename,"\n")
}

but this doesn't address any overflow issues.

Duncan


-----Original Message-----
From: Liaw, Andy [mailto:andy_liaw at merck.com] 
Sent: Friday, 4 March 2005 11:14 AM
To: 'Duncan Mackay'; R-news
Subject: RE: [R] Rconsole wishlist


I'm guessing you're talking about Rgui on Windows, but please don't leave us
guessing.

If you run R under Ess/(X)Emacs, you have the entire session that can be
saved in a (transcript) file.

Does your OS not put date stamps on file?
size isdir mode               mtime               ctime
.Rhistory 1025 FALSE  666 2005-03-03 19:27:31 2004-08-13 10:45:09
                        atime
.Rhistory 2005-03-03 19:27:31

Andy
http://www.scieng.flinders.edu.au/biology/people/mackay_d/index.html
  



______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html





----------------------------------------------------------------------------
--
Notice:  This e-mail message, together with any attachments,...{{dropped}}