biotools package fails to install - r

I have tried to install the biotools package on my desktop so that I can run a box's M test for homogeneity of covariance. However I get the following error message.
ERROR: failed to lock directory
‘/Users/lmil8126/Library/R/3.2/library’ for modifying
Try removing ‘/Users/lmil8126/Library/R/3.2/library/00LOCK-biotools’
Warning in install.packages : installation of package ‘biotools’ had
non-zero exit status
The downloaded source packages are in
‘/private/var/folders/0q/n377y94n4gzd0zlntfsq1jnh2ymcwz/T/Rtmp8fhiFd/downloaded_packages’
The package works fine on my laptop, which is Mavericks, but my desktop is Yosemite.
Does anyone have any suggestions for a fix?

Related

Installation issue with tidyverse package

I am having trouble installing packages, I was not able to install any. I got the following error in my r console:
ERROR: dependency 'cachem' is not available for package 'memoise'
* removing 'C:/Users/VasquezV/Documents/R/win-library/3.4/memoise'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\VasquezV\Documents\R\win-library\3.4" C:\Users\VasquezV\AppData\Local\Temp\1\RtmpuiYtO1/downloaded_packages/memoise_2.0.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘memoise’ had non-zero exit status
The major issue with this problem is that the cli package might not be updated as it often shows 3.1.1 installed but 3.3.0 required. Hence you have two solutions:
install.packages(cli) - there are chances that even this step
might fail as the error message is displayed: "Error in unpacking packages."
Uninstall Cran R and R studio and reinstall it or install the package for replacing the existing one to solve the issue.
This will definitely work as I have solved the issue through this way itself.

rgl installation in Mac: X11 not found

I am having the same problem as this and this.
I have installed R and rstudio through a conda environment which included r-rgl. I am now trying to install a package within R that requires rgl. However, calling library(rgl) gives the error
Error: package or namespace load failed for ‘rgl’:
package ‘rgl’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
I have tried to install rgl from within R, but then I get this message:
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’
* removing ‘/path/to/miniconda3/envs/my_conda_env/lib/R/library/rgl’
* restoring previous ‘/path/to/miniconda3/envs/my_conda_env/lib/R/library/rgl’
Warning in install.packages :
installation of package ‘rgl’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/vh/.../downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
The solution to the last error seems to be installing XQuartz in Mac, but I had it installed before. So I tried specifying install.packages("rgl", INSTALL_opts = "--with-libpng-prefix=/usr/X11/") but I still get the error above. Any suggestions? I'm quite lost now...
TL;DR: how do I connect my XQuartz installation with each conda environment that I create?

installing R2jags library in HPC linux

I am trying to install R2jags an r package in HPC linux environment, but doesn't work. This does work in windows, but not in HPC linux. I tried several options like:
install.packages("https://cran.r-project.org/src/contrib/R2jags_0.5-7.tar.gz", repos=NULL
but ends up with error:
ERROR: dependency 'rjags' is not available for package 'R2jags'
* removing '/ddn/home/grpl22/R/x86_64-pc-linux-gnu-library/3.6/R2jags'
Warning message:
In install.packages("https://cran.r-project.org/src/contrib/R2jags_0.5-7.tar.gz", :
installation of package '/tmp/Rtmprf6lN0/downloaded_packages/R2jags_0.5-7.tar.gz' had non-zero exit status
any sugeestion please how i can install this?

R Not able to install CHAID

I am trying to install CHAID package into R using the command below.
install.packages("CHAID", repos="http://R-Forge.R-project.org")
I keep getting the response
Error in dev.off() : could not find function "dev.off"
Execution halted
In R CMD INSTALL
Warning in install.packages :
installation of package ‘CHAID’ had non-zero exit status
The OS is Windows10. R is running the latest 3.5.1
I tried to google the error and find a fix but without success.
Make sure you have the partykit package installed first before installing CHAID. That worked for me.

Unable to install slam on Mac OS 10.8.3

I'm having some trouble installing the R package "slam" on my machine. I'm running a Macbook Pro OS 10.8.3 with R Version 3.2.1.
In order to get RTextTools package to work, I require a slam package of version 0.1-30 and above. I've read the documentation and it states that slam v0.1-30 and above (with the exception of 0.1-38) can run on any R version above 2.8.0.
This doesn't seem to be the case however. I've tried everything from 0.1-31 to 0.1-37 and the installation keeps failing with the following message:
ERROR: compilation failed for package ‘slam’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/slam’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/slam’
Warning in install.packages :
installation of package ‘/Users/(user)/Downloads/slam_0.1-34.tar.gz’ had non-zero exit status
Can anybody help me please? Is there a way to solve this problem (either install RTextTools or install slam) without upgrading my machine's OS?

Resources