rlinuxubuntupackage

Default packages not found in R (Ubuntu)


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.


Solution

  • 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 the which command was named which.debianutils and the executable /bin/which was not present. I solved with sudo apt reinstall debianutils.