dgrapov / CTSgetR

R interface to Chemical Translation Service (CTS)
14 stars 9 forks source link

errors #6

Open Innovation888K opened 12 months ago

Innovation888K commented 12 months ago

Caused by error in curl::curl_fetch_memory(): ! Recv failure: Connection was aborted this error raised in code: keggid=CTSgetR(com_name,from = "Chemical Name",to="KEGG") seems connection aborted, how can I solve this

dgrapov commented 11 months ago

Can you please post a reproducible example and your session info to help me debug.

For example:


library(CTSgetR)
db_name<-'ctsgetr.sqlite' # local cache
id<-c('alanine','pyruvic acid','anandamide')
from<-"Chemical Name"
to<-"KEGG"

CTSgetR(id,from,to,db_name=db_name)

Results:

            id   KEGG
1      alanine C00041
2 pyruvic acid C00022
3   anandamide C11695

Here is the environment I am testing in:

sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
...
other attached packages:
[1] CTSgetR_1.3      ocpuclient_0.4.2 crul_1.3        
[4] reshape2_1.4.4   RSQLite_2.2.18   httr_1.4.5      
[7] purrr_1.0.1      tidyr_1.3.0      dplyr_1.1.1