Error after Installing RStudio - package ‘stats’ in options("defaultPackages") was not found

hi I am getting this error in RStudio Installation and unable to run packages in RStudio. Can you please help , I followed the basic trouble shooting to Install R first and then RStudio. R version installed was 4.3.3 (2024-02-29 ucrt) and the RStudio version was 2023.12.1 Build 402. Error Details which I get in the console are as Follows: Please suggest what else I can do to resolve this
Strage thing is i checked manually the path of stats.dll file exist at that path

Error during Loading RStudio :
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.3.3/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
Warning: namespace ‘ggplot2’ is not available and has been replaced
by .GlobalEnv when processing object ‘graph1’
Warning: namespace ‘stats’ is not available and has been replaced
by .GlobalEnv when processing object ‘graph1’
Warning: namespace ‘ggiraph’ is not available and has been replaced
by .GlobalEnv when processing object ‘scatteplot_demo’
Warning: namespace ‘gghighlight’ is not available and has been replaced
by .GlobalEnv when processing object ‘txhousing_new’
Warning: namespace ‘ggrepel’ is not available and has been replaced
by .GlobalEnv when processing object ‘txhousing_sales’
[Workspace loaded from ~/.RData]

Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.3.3/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.

Can you run R from a command prompt? If so, you might try the instructions here for resetting RStudio's state.

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.