i’m new with R and i’m having some problems in making it work properly.
When I type "R" in my terminal (linux Ubuntu) I get the following warning:
During startup - Warning messages:
1: package ‘utils’ in options("defaultPackages") was not found
2: package ‘stats’ in options("defaultPackages") was not found
which I think are the cause of many other problems like not being able to install other packages.
I read a lot of similar question but they were very old and I have not been able to adapt them to my case.
Anyway, I think that the problem is something related to the default packeges folders.
I cannot install Rstudio because it’s a machine with only terminal access.
Thanks to anyone who can help me.
2
Answers
I found the solution for my problem:
apparently during the loading of R, some bash script uses the
which
command to get the full path of something. Now, I don't know why, on my linux installation thewhich
command was namedwhich.debianutils
and the executable/bin/which
was not present. I solved withsudo apt reinstall debianutils
.if you go to https://cran.r-project.org/ and click on "download R for unix" , then select Ubuntu, you’ll find a page full of info on how properly to install R and R packages from a terminal session.
However, if you somehow managed to destroy your Ubuntu install such that there is no Desktop at all and you can’t even run a web browser, then you may have bigger problems.