Displaying 1 result from an estimated 1 matches for "savehistory_".
Did you mean:
savehistory
2002 Oct 21
1
savehistory directories and quitting R (PR#2038)
...nder startup options, not things to do with history.
However, Duncan's reply did hint at an inconsistency, in that savehistory()
defaults to using a file called .Rhistory in getwd(), rather than using
R_HISTFILE. I've modified my savehistory to default to R_HISTFILE if it
exists, like so:
savehistory_ function( file) {
if( missing( file) && is.null( file <- Sys.getenv( 'R_HISTFILE')))
file <- '.Rhistory'
get( 'savehistory', pos='package:base')( file)
}
#This is not a bug. If you override a system function, you
#can't expect it
#to be us...