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

Error when using get.cid() #3

Open
ningshi opened this issue Feb 1, 2020 · 1 comment
Open

Error when using get.cid() #3

ningshi opened this issue Feb 1, 2020 · 1 comment

Comments

@ningshi
Copy link

ningshi commented Feb 1, 2020

I tried to use the example given in get.cid()

cids <- c(5282108, 5282148, 91754124)
dat <- lapply(cids, get.cid)

then i got

Error in if (info.name == n) info.name <- "" : argument is of length zero

Could you please take a look at this error.

@korseby
Copy link

korseby commented Feb 26, 2020

When I do something like get.sid(7366998) I get the following error. I assume that these errors are connected to the one reported by @ningshi

[1] "Error in download.file(url, destfile = dest, method = \"internal\", mode = \"wb\",  : \n  cannot open URL 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?tool=rpubchem&db=pcsubstance&id=7366998'\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in download.file(url, destfile = dest, method = "internal", mode = "wb",     quiet = quiet): cannot open URL 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?tool=rpubchem&db=pcsubstance&id=7366998'>
Error in .get.xml.file(url, datafile, quiet) : Error in the download
In addition: Warning message:
In download.file(url, destfile = dest, method = "internal", mode = "wb",  :
  "internal" method cannot handle https redirection to: 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?tool=rpubchem&db=pcsubstance&id=7366998'

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

No branches or pull requests

2 participants