Missing 'stats' package upon startup

I've been having an issue where every time I open RStudio I get this error message in the console:


I've tried uninstalling and reinstalling both R and RStudio, manually installing the stats package, but nothing seems to resolve the issue. In my file explorer, I can see that the file specified in the error message exists on my computer. I've also tried updating my user PATH and I'm still getting the same error message.

Hi, maybe try this: Stat package will not load after installing RTools - General - Posit Community

If you run R from a command prompt, does the stats package load? You can tell by running library("stats") or ?lm -- if there is no error message, it presumably loaded.

This topic was automatically closed 42 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.