R Studio Could Not Find "install.packages"

This problem started today, every time I open up the R studio, the error: could not find function "install.packages" automatically showing up. I tried to delete R and R studio, and delete all the packages as well, still doesn't work

Just a guess: Could there be a problem with the .RData file in your user home directory? I guess uninstall/install RStudio will not remove it (How do I find the .RData file that's making my session unresponsive?). You have to remove it manually.
It is recommended to never store and restore your workspace to/from .RData (First line of every R script?)

If this does not help: Is your installation working except from this error message?

1 Like

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