-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
Last few days I was using an epmc_search function to retrieve data from the EuropePMC database and sometimes I get the following error (of cause number of records are different, depending on the search):
1498 records found, returning 1498
(\) [=================================================] 100%
Error in pb_tick(self, private, len, tokens) : !self$finished is not TRUE
Here is the code I use:
library(europepmc)
queries = read.csv("drug_list.csv")
j = 20
while (j <= nrow(queries)){
search_results = europepmc::epmc_search(query = paste0("(METHODS:", queries[j, 'epmc'], ") AND (OPEN_ACCESS:y)"),
limit = 3000);
#some operations with search_result here
j = j + 1
}
Sometimes it works just fine, sometimes it constantly returns the abovementioned error message. As I don't change the code between runs, I can't catch what can cause the issue.
Metadata
Metadata
Assignees
Labels
No labels