In RStudio server on KAC
If you’ve upgraded R packages to the newest version, you may experience that you no longer can run scripts, and you may be shown this error note:
Error in switch_lang(...)
In that case, you have to go back to a earlier version of packages i.e. the package ‘rlang’ has to be downgraded:
rlang_0.4.0 > rlang_0.2.2
Solution:
- Click the “Packages” tab
- Write rlang in the search bar to the right. This should make multiple versions appear.
- Hit the little (x), that is right next to the latest version to uninstall it.
- Now you can run your code and it should work from here. Otherwise, try to start a new connection.