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

article is lost by pmApiRequest #9

Open
ideophone opened this issue Jul 18, 2022 · 1 comment
Open

article is lost by pmApiRequest #9

ideophone opened this issue Jul 18, 2022 · 1 comment

Comments

@ideophone
Copy link

ideophone commented Jul 18, 2022

For some reason that I haven't been able to narrow down any further, a certain article, "Mapping Evidence on the Burden of Breast, Cervical, and Prostate Cancers in Sub-Saharan Africa: A Scoping Review.", is lost by pmApiRequest().

This is my code (corresponding pubmed search in a web browser: https://pubmed.ncbi.nlm.nih.gov/?term=breast+Cancer+Incidence+Mortality+Years+of+Life+Lost+Years+Lived+With+Disability+Disability-Adjusted+Life+Years):

library(pubmedR)
library(bibliometrix)

api_key <- NULL

query <- "(breast Cancer Incidence Mortality Years of Life Lost Years Lived With Disability Disability-Adjusted Life Years) OR ((Evaluating Family History Links between Breast Cancer and Prostate Cancer Among PLCO Trial Participants.) AND (Abdel-Rahman O[Author]))"

res <- pmQueryTotalCount(query = query, api_key = api_key)
articles <- pmApiRequest(query = query, limit = res$total_count, api_key = api_key)

The last line generates the comment: "Documents 47 of 47" in the RStudio Console. And

articles$total_count

results in 47.
But running

articles_df <- pmApi2df(articles)
nrow(articles_df)

results in 46 only.
And comparing the pubmed search result in a web browser with the contents of the result of pmApiRequest (for example by means of

sink("articlesXML.txt")
print(articles)
sink()

and the find function in a text editor), shows that the one above mentioned review article is lost.

It must have something to do with that specific article, for running a query for only that article

query <- "(Mapping Evidence on the Burden of Breast, Cervical, and Prostate Cancers in Sub-Saharan Africa: A Scoping Review.) AND (Musekiwa[Author])"

res <- pmQueryTotalCount(query = query, api_key = api_key)
articles <- pmApiRequest(query = query, limit = res$total_count, api_key = api_key)

results in an Error:

Error: HTTP failure: 400
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE eEfetchResult PUBLIC "-//NLM//DTD efetch 20131226//EN" "https://eutils.ncbi.nlm.nih.gov/eutils/dtd/20131226/efetch.dtd">
<eFetchResult>
<ERROR>Cannot retrieve history data: OUT OF RANGE. Parameter retstart=1 + 1 is greater than number of records available in history. History includes 1 IDs.</ERROR>
</eFetchResult>

@ideophone ideophone changed the title One article is lost by pmApiRequest article is lost by pmApiRequest Jul 18, 2022
@leandrorodriguess
Copy link

I'm experiencing the same problem.

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