Realising that my R version is nearly 2-years behind (4.12) I decided to update. Simple enough.
I tried the usual Help > Check For Updates
in RStudio to no effect. Strange.
Then I found out that there is a command version of this in installr::updateR
. And that gave me an error that half-explains the problem:
Error in winDialog(type = "ok", message = message_text) :
could not find function "winDialog"
In addition: Warning message:
In get.installed.R.folders() :
Could not find any R installation on your system. (You might have installed your R version on 'c:\R' without sub folders...
My R.home() is in fact
[1] "/usr/lib/R"
But get.installed.R.folders
does not see this directory. I can run R outside of RStudio just fine, so I know that it is in my path. So what's the problem here? Why doesn't updateR see my R installation directory and how can I fix it?