Skip to content
Prev 8065 / 63424 Next

savehistory directories and quitting R (PR#2038)

What happens on shutdown is specific to the platform you're working
on, but in both Windows and Unix versions, the filename is taken from
the R_HISTFILE environment variable.  I don't know if this works on
the Mac.

This would be more obvious if the R savehistory() function were
changed to check the R_HISTFILE environment variable too.

The problem with using the user's savehistory() function is that this
violates the idea of namespaces that we're working towards:  users
should be able to create their own function named "savehistory"
without worrying about changing important internal behaviour.

Duncan Murdoch

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._