Disable saving history

前端 未结 4 2060
误落风尘
误落风尘 2020-12-15 17:37

Is it possible to disable saving command history / session in R by default ? I really hate those .RData and .RHistory files !!

4条回答
  •  不知归路
    2020-12-15 17:58

    Even more flexible (Windows), add R and RStudio to your right-click menu so you can start in any directory

    R-Gui: save the following in a file rguihere.reg, and double-click

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Folder\shell\RGui]
    @="R Gui here"
    
    [HKEY_CLASSES_ROOT\Folder\shell\RGui\command]
    @="cmd.exe /c \"pushd  %L &&start rgui --no-restore --no-save\""
    

    RStudio

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Folder\shell\RStudio]
    @="RStudio here"
    
    [HKEY_CLASSES_ROOT\Folder\shell\RStudio\command]
    @="cmd.exe /c \"pushd %L &&start C:\\PROGRA~1\\RStudio\\bin\\rstudio.exe\""
    

提交回复
热议问题