[R-pkg-devel] Package cannot connect to Ensembl
Berry Boessenkool
berryboe@@enkoo| @end|ng |rom hotm@||@com
Sun Oct 5 19:07:59 CEST 2025
Hi Vonn,
You could wrap the offending example in try et.al. and handle failed situations in a way that gives a warning but not an error.
Best,
Berry
-------------------------------------
________________________________
From: R-package-devel <r-package-devel-bounces using r-project.org> on behalf of Walter, Vonn via R-package-devel <r-package-devel using r-project.org>
Sent: Wednesday, October 1, 2025 22:08
To: r-package-devel using r-project.org <r-package-devel using r-project.org>
Subject: [R-pkg-devel] Package cannot connect to Ensembl
Hi Everyone,
One of the functions in my DiNAMIC.Duo package on CRAN uses the biomaRt package to download gene position information from the Ensembl website. Currently I use one of the Ensembl archives (ensemblHost=http://aug2020.archive.ensembl.org in the code below). The archive is unavailable periodically, so the function includes the following code in an effort to ��fail gracefully,�� as is required by CRAN:
statusCode = curl::curl_fetch_memory(ensemblHost)$status_code
if (statusCode != 200)
{
stop(paste(ensemblHost, "currently not available"))
}
I recently received a notice from CRAN stating that that an error was received when checking examples with �Vrun-donttest. Specifically, the following:
Error in `req_perform()`:
! Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! SSL connect error [aug2020.archive.ensembl.org]:
OpenSSL/3.2.4: error:0A0000C6:SSL routines::packet length too long
Backtrace:
�g
1. �|�wDiNAMIC.Duo::dataPrep(X = luadSubset, Y = NULL)
2. �|�wbiomaRt::useMart(...)
3. �|�wbiomaRt:::.useMart(...)
4. �|�wbiomaRt:::.listMarts(...)
5. �|�wbiomaRt:::bmRequest(...)
6. �|�whttr2::req_perform(request)
7. �|�whttr2:::handle_resp(req, resp, error_call = error_call)
8. �|�wrlang::cnd_signal(resp)
Execution halted
Any suggestions on how to revise the existing code would be greatly appreciated. Thanks in advance for your reply.
Best,
Vonn
Vonn Walter, PhD
Associate Professor
Department of Public Health Sciences
Department of Molecular and Precision Medicine
Co-Director
Biostatistics and Bioinformatics Shared Resource
Penn State Cancer Institute
Penn State College of Medicine
Pronouns: he/him/his
[[alternative HTML version deleted]]
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list