When installing and loading igraph in Rstudio (R version 4.2.2), everything seems normal. However, when doing so in VScode, I get the following error:
> library(igraph)
Error: package or namespace load failed for 'igraph' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/lu_41/Documents/R/win-library/4.1/igraph/libs/x64/igraph.dll':
LoadLibrary failure: ?ò2?μ????¨μ?3ìDò?£
I’ve tried reinstalling, using the dev version, installed visual C++, and stil get the same error. I have no idea why its happening because everything was pretty normal a few days ago both in Rstudio and Vscode. It might have something to do with the vscode packages I have? As recently I installed quite a lot of them, although I have no idea how it could relate to a DLL load failure.