Rstudio trouble accessing library after downloading RTools40 and altering Path

Here is the code I ran:
library(odbc)

Output error message from RStudio:
Error: package or namespace load failed for ‘odbc’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/Ryan.M.Allen/Documents/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘odbc’ was built under R version 4.0.2

Path

Sys.getenv("PATH")
[1] "C:\rtools40\usr\bin;C:\Users\Ryan.M.Allen\Documents\R\R-4.0.0\bin\x64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Users\Ryan.M.Allen\AppData\Local\Microsoft\WindowsApps;"

Rcpp.dll

Sys.which("Rcpp.dll")
Rcpp.dll
""

libPaths

.libPaths()
[1] "C:/Users/Ryan.M.Allen/Documents/R/R-4.0.0/library"

I got close with this closed question: here but I wasn't sure what to do with my Rcpp.dll file and my path.

Other necessary things:
RStudio version 1.3.1056
Windows
R version 4.0.0

Thank you for the help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.