Hallo
I increased number of lines which .Rhistory stores before the lines start to
be overwritten.
You can do this by changing number in
Sys.setenv(R_HISTSIZE = 2000)
in Rprofile.site located in etc folder of your installation.
And from time to time I rename Rhistory to something like "210621.r"
Rhistory is plain text file so it can be viewed in any suitable text editor.
Cheers
Petr
> -----Original Message-----
> From: R-help <r-help-bounces at r-project.org> On Behalf Of Gabriel
Toro
> Sent: Monday, June 21, 2021 10:16 PM
> To: r-help at r-project.org
> Subject: [R] Question about .Rhistory in Windows
>
> I am using version 3.6.3 on Windows. For some reason, the .Rhistory file
gets> over-written once in a while. I would like to avoid this so I have a
complete> history over multiple R sessions. Under what conditions can the .Rhistory
file> be over-written? Is there a way to keep this file from being
over-written?> Any change in the startup settings?
>
> Thanks in advance,
>
> Gabriel
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.