installr::updateR does not see my R.home()

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 Updatesin 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?

installr is Windows-only. It looks like you are running Linux.

1 Like

Yep, that was it.

I ended up following the instructions over at The Comprehensive R Archive Network for linux instalation instead.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.