# NOT RUN {
try({
## Retrieve PubMed data and return a list ot articles
my_query <- "Damiano Fantini[AU]"
my_query <- get_pubmed_ids(pubmed_query_string = my_query)
my_data <- fetch_pubmed_data(my_query, encoding = "ASCII")
listed_articles <- articles_to_list(my_data)
custom_grep(listed_articles[[2]], "ArticleTitle", "char")
}, silent = TRUE)
# }
# NOT RUN {
## Download PubMed data and return a list ot articles
dami_query <- "Damiano Fantini[AU] AND 2018[PDAT]"
outfile <- batch_pubmed_download(dami_query, dest_file_prefix = "easyPM_ex001_")
listed_articles <- articles_to_list(pubmed_data = outfile)
custom_grep(listed_articles[[2]], "ArticleTitle", "char")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab