Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.get.tmp.url is broken, causing regression tests to fail #21

Closed
charles-plessy opened this issue Sep 20, 2023 · 0 comments · Fixed by #22
Closed

.get.tmp.url is broken, causing regression tests to fail #21

charles-plessy opened this issue Sep 20, 2023 · 0 comments · Fixed by #22

Comments

@charles-plessy
Copy link

Hello,

At the moment, the regression tests at https://bioconductor.org/checkResults/3.17/bioc-LATEST/KEGGREST/nebbiolo1-checksrc.html fail with:

KEGGREST RUnit Tests - 11 test functions, 1 error, 0 failures
ERROR in test_mark_and_color_pathways_by_objects: Error in strsplit(urlLine, "\"", fixed = TRUE)[[1]] : 
  subscript out of bounds

Test files with failing tests

   test_KEGGREST.R 
     test_mark_and_color_pathways_by_objects 


Error in BiocGenerics:::testPackage("KEGGREST") : 
  unit tests failed for package KEGGREST
Execution halted

I could reduce this to:

> KEGGREST:::.get.tmp.url("https://www.kegg.jp/pathway/eco00260+eco:b0002+eco:c00263")
No encoding supplied: defaulting to UTF-8.
Error in strsplit(urlLine, "\"", fixed = TRUE)[[1]] : 
  subscript out of bounds

The function fails when running strsplit(…)[[1]] on urlLine, which is the output of grep("<img src=\"/tmp", lines…, which is character(0)

Probably the structure of the KEGG webpages changed? But as I am not familiar enough with the package, I can not propose a patch.

I hope it helps,

Charles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant