简体   繁体   中英

Unable to load shared object on startup in RStudio only

I'm not sure what I did, and my IS team is stumped. I updated R from 3.5.2 to 3.6.0 and R throws this error when opened in RStudio There is no problem when running R in the gui.

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

I can navigate to the stats.dll file and the location matches my .libPaths() :

"C:/Program Files/R/R-3.6.0/library"

I have uninstalled and reinstalled both R and RStudio (1.2.1335). I have also restarted my computer. Any help or even temporary solutions would be appreciated.

在此处输入图片说明

I found the answer on RStudio Community: I had a typo in one of the variables used in Sys.getenv("PATH")

https://community.rstudio.com/t/unable-to-load-shared-object-on-startup-in-rstudio-only/33107

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM