Closed pavelVPo closed 2 years ago
Thank you for your report. I implemented your fix and it works as expected 🎉 Please re-install the dev version from GitHub.
Sorry for the late reply and thank you, dev-version is installed and there is no issue with the articles lacking PMCID.
First of all, thank you for your work. Using europepmc I found out that there are articles, which lack PMCID and still have some annotations though. Unfortunately, it is impossible to retrive them because (europepmc 0.4.1):
epmc_annotations_by_id("MED:10566658") No encoding supplied: defaulting to UTF-8. Ошибка: Internal error in
df_slice()
: Columns must match the data frame size. Runrlang::last_error()
to see where the error occurred.I guess that the problem is in annotations_by_id.R, epmc_annotations_byid, line 63: pmcid = req[["pmcid"]], I think it could be changed to pmcid = if_else(is.null(req[["pmcid"]]), NAcharacter, req[["pmcid"]]),
Regards.