I have worked now for some time on an R project in my office\'s desktop computer, but need to carry the scripts with me while on travel. I copied everything into my laptop a
open /Library/Frameworks/R.framework/Resources/library
and press enter. A finder window should open with a lot of foldersinstall.packages("dplyr")
etcAfter I did this, the issue went away
The problem is the linkage with your g++ stdlib. Different versions of Ubuntu have different versions of g++ stdlib. You cant always copy binaries from one to the other.
You may fix this by recompiling R for the laptop, or using the Ubuntu R packages. e.g. http://packages.ubuntu.com/xenial/r-base
What is .libPaths()
giving you as the output?
I encountered the same problem using the latest update today (R 3.3.1 for MacOS X). My R installation seemed to crash after updating it. My solution was simply to remove the lib directories from the file system and reinstall R:
rm -rf /Users/johann/Library/R/3.3/library
sudo rm -rf Library/Frameworks/R.framework/Versions/3.3/Resources/library
Hope this helps...
I had a similar issue with rgdal
on Ubuntu. Re-installing the package was enough to getting it working again.
$ sudo R
> install.packages("rgdal")
> quit()
$ exit