This is how I start R on my Linux machine.
.Rprofile is in the root of my $ HOME directory and has only the following line:
source ("~/.config/r/Renviron.r")
Then I add all types of options, variable paths, environment, or user environment aliases to the Renviron.r file. Among other lines, this path sets the path to Rhistory:
Sys.setenv(R_HISTFILE="/developement/language/r/.Rhistory")
The path is correct, as returned by the team
R > Sys.getenv("R_HISTFILE")
Following this documentation , it seems that there is no need to tell R to explicitly load the history (loadhistory ("path / to / HISTFILE"). When I run R on my terminal, there is no history.
What am I doing wrong? Thank you for your help.
source share