Error Package 'stats' in defaultPackages not found

Error Information:

Brand new installation.
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.0.3/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
Description of issue -

Steps taken so far -
uninstalled and re-installed R (first) and then RStudio. Verified that stats.dll is in the location specified. Verified that STATS package runs in R.

System Information:

  • RStudio Edition: (Desktop or Server) desktop
  • RStudio Version: 1.4.1103
  • OS Version: Windows 10
  • R Version: 4.0.3 64-bit

Also:

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

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