I'm trying to use the RISmed package to extract data from the PubMed scientific database. I have used the exact same procedure before, but now I can't get it to work. The example below is a toy example.
library(RISmed)
res <- EUtilsSummary("pinkeye", type="esearch", db="pubmed", datetype='pdat', mindate=2000, maxdate=2015, retmax=500)
Error in file(con, "r") : cannot open the connection
QueryCount(res)
Error in QueryCount(res) : object 'res' not found
The 'QueryCount(res)' is supposed to return the number of hits found using the query, but since it didn't find a connection, it didn't find any hits.
I have checked if R has an internet connection and it seems like it does ; my mac also doesn't seem to have any issues. Does anyone else get this error, too? Do you know how to solve it?
Help is greatly appreciated!