I was receiving the following error after loading Rstudio after I installed rtools and changed the PATH according to an online guide.
unable to load shared object 'D:/R-4.0.2/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
Im not a newbie to R but anything to do with looking under the hood of my computer sends my head spinning and I was confused as to what PATH means and so I think i have made a bit of a mess.
writeLines('PATH="$D:\\rtools40\\usr\\bin;$D:\\RStudio\\bin;$D:\\R-4.0.2\\bin\\x64"', con = "~/.Renviron")
> Sys.getenv("PATH")
[1] "$D:\\rtools40\\usr\\bin;$D:\\RStudio\\bin;$D:\\R-4.0.2\\bin\\x64"
I dont know what to point to with RStudio or even if any of this is OK. Im sure this is really simple for someone