Hi all,
I am fairly new to bioconductor packages but have had some experience in R. My R version is 2022.07.2 so it is the latest.
When trying to load DMRcate library, I am getting the same error over and over again and I have tried to uninstall package and reinstall and it still gives me this error. I am not sure what to do and I was wondering if you all had any suggestions? FYI i am currently trying to follow the tutorial for methylation analysis from the paper " A cross-package Bioconductor workflow for analysing methylation array data"
Code should be placed in three backticks as shown below
library(minfi)
library(IlluminaHumanMethylation450kanno.ilmn12.hg19)
library(IlluminaHumanMethylation450kmanifest)
library(RColorBrewer)
library(missMethyl)
library(matrixStats)
library(minfiData)
library(Gviz)
library(DMRcate)
library(stringr)
Error when I run this code:
Error: package or namespace load failed for 'DMRcate' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called 'httpuv'
I even tried to install httpuv but with no luck still.
Any suggestions of what to do?
Hi, adding the error you have when installing
httpuv
would be informative.`There is a binary version available but the source version is later: binary source needs_compilation httpuv 1.6.8 1.6.9 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) library(DMRcate)
Error in install.packages : Unrecognized response "library(DMRcate)" `
What did happen after "Do you want to install from sources the package which needs compilation? (Yes/no/cancel)" ? Have you tried to input "Yes" ? I think you should
I cant actually tried inputting as before I can it just comes up with the last line "error in install.package : Unrecognized response "library(DMRcate)"
You need to run each line independently. Run
install.packages("httpuv")
alone and you will be able to run "Yes" for the compilationI tried that too. It comes up with the error:
"Error: package or namespace load failed for 'DMRcate' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called 'httpuv'"
Even after I install httpuv and input Yes
This is very strange. I suggest you to close your R session, restart a new one and only run
install.packages("httpuv")
. I do not understand why DMRcate comes up herereally annoying. I've tried this just now and only ran that.
I then ran all the libraries and got the same error.
We need to know the message you have after running ONLY :
install.packages("httpuv")
installing the source package ‘httpuv’
trying URL 'https://cran.rstudio.com/src/contrib/httpuv_1.6.9.tar.gz'
Content type 'application/x-gzip' length 1875081 bytes (1.8 MB)
downloaded 1.8 MB
The downloaded source packages are in ‘/private/var/folders/j1/k4c93kqx0qq3f7ctvbqcngt80000gn/T/RtmpFRiGQA/downloaded_packages’
Thanks. Now we know that xcrun is missing and httpuv cannot be installed until this error is unsolved. Are you working on macOS ? If yes you can try the solutions proposed here to overcome this issue : https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a Notably opening a terminal and run
xcode-select --install
You're amazing. Thanks! It has now worked.