R visual error - "package '...'was installed by an R version with different internals"
Hello,
I am unable to switch libraries as mentioned in the workaround suggested above. I deleted the 1st path and with only the default Microsoft-openR client the problem persisted.
However I noticed that PowerBI tries to load packages from a different library path ("C:/User/User_name/Library" - in my case) when using the R visuals and I printed the list of libraries inside the Rvisuals using .libPaths() command. So after installing the packages into this new location, I am able to run my R scripts in Rvisuals without any issues. No more namespace conflicts.
Some extra information – When Rstudio/Rclient is triggered from non-administrator account then R/Rstudio create a path to install the packages. This is usually "C:/Users/User_name/Documents/R/win-library/R_version_used", running Rstudio/Rclient as administrator did not create 2 paths for me.
Hope this helps!