Skip to content

europepmc::epmc_search: Error in pb_tick #36

@Dobrokhotov1989

Description

@Dobrokhotov1989

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions