I've installed two packages, "lmtest" and "sandwich". When I try to run a package, R says that there is no package with the name though it has already said that it was successfully downloaded. I've already uninstalled and reinstalled R, I've removed the packaged and reinstalled them and restarted R, closed the notebook and reopened he notebooks -- nothing has worked. I've also checked my firewall and R is let through it.
HELP!
install.packages("lmtest")
install.packages("sandwich")
Installing package into �C:/Users/---/OneDrive/Documents/R/win-library/3.5�
(as �lib� is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/lmtest_0.9-36.zip'
Content type 'application/zip' length 359101 bytes (350 KB)
downloaded 350 KB
package ‘lmtest’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘lmtest’
The downloaded binary packages are in
C:\Users---\AppData\Local\Temp\RtmpGaJ4vT\downloaded_packages
Installing package into �C:/Users/Emily/OneDrive/Documents/R/win-library/3.5�
(as �lib� is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sandwich_2.4-0.zip'
Content type 'application/zip' length 1315938 bytes (1.3 MB)
downloaded 1.3 MB
package ‘sandwich’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘sandwich’
The downloaded binary packages are in
C:\Users---\AppData\Local\Temp\RtmpGaJ4vT\downloaded_packages
C:\Users---\AppData\Local\Temp\RtmpGaJ4vT\downloaded_packagesal\Temp\RtmpGaJ4vT\downloaded_packagesly\AppData\Local\Temp\RtmpGaJ4vT\downloaded_packagesta\Local\Temp\RtmpGaJ4vT\downloaded_packages
sandwich::standwich(bptest(mod.h))
Error in loadNamespace(name) : there is no package called ‘sandwich’
sandwich::bptest(mod.h)
Error in loadNamespace(name) : there is no package called ‘sandwich’
bptest(mod.h)
Error in bptest(mod.h) : could not find function "bptest"