linux - Issue with R packages installed with root -
for reason, not install rjava package without root privilege (using sudo r , install.packages('rjava')). should have solved problem, can use package when launching r sudo r. if launch without sudo, r act if package not installed.
i tried looking @ /usr/local/lib/r/site-library, every package belongs user , group "staff" except one, belongs root , staff. rights every package rwxrwxr-x , in group staff, should have permissions need. in addition, tried changing owner of rjava folder user , didn't change anything. have idea why rjava not recognized if start r without sudo? thanks!
i had issues installing rjava i'll outline steps took fix though may specific system. there's @ least chance work too.
remove rjava , openjdk:
sudo apt-get purge r-cran-rjava sudo apt-get purge openjdk-7-jre
install oracle java:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
reinstall rjava
sudo apt-get install r-cran-rjava
after hunky-dory. glmulti
installed fine well.
Comments
Post a Comment