Hello,
I'm having trouble connecting to ensembl with biomaRt package. I'm using this code
useMart(biomart="ensembl", dataset="hsapiens_gene_ensembl", verbose = TRUE)
About 50% of the time I get the following error. It is impossible to reproduce consistently
Ensembl site unresponsive, trying uswest mirror
Attempting web service request:
https://www.ensembl.org:443/biomart/martservice?type=version&requestid=biomaRt&mart=ENSEMBL_MART_ENSEMBL
Ensembl site unresponsive, trying asia mirror
Error in textConnection(BioMartVersion) : invalid 'text' argument
In addition: Warning message:
In if (BioMartVersion == "\n" | BioMartVersion == "") { :
the condition has length > 1 and only the first element will be used
What am I doing wrong? How to make it more consistent so that I can trust my scripts to run without problems?
I'm running R 4.1.1 and biomaRt 2.50.3
Thank you,
Paul
Thank you! Seems to be working consistently right now. I'm surprised the default doesn't work correctly. Notice that my error message above says
Ensembl site unresponsive, trying uswest mirror
. So I'm baffled why it wouldn't work by trying the different mirrors. Oh well, maybe overall the service is a bit flaky and just have to deal with it.Thank you again