#' Use the post interface to get linkout data.
#'
#' @param entry The full annotation entry.
#' @param build_dir Location to which to save intermediate savefile.
#' @param overwrite Overwrite the savefile when attempting a redo?
#' @return A big honking table.
post_eupath_pubmed_table <- function(entry, working_species,
overwrite = FALSE, verbose = FALSE) {
rda <- check_rda("pubmed", entry, overwrite)
savefile <- rda[["savefile"]]
if (!is.null(rda[["result"]])) {
if (isTRUE(verbose)) {
message("Returning Pubmed data from a previous savefile.")
}
return(rda[["result"]])
}
result <- post_eupath_table(entry, working_species,
tables = "PubMed", table_name = "pubmed")
if (nrow(result) > 0) {
colnames(result) <- c("GID", "PUBMED_ID", "PUBMED_DOI",
"PUBMED_TITLE", "PUBMED_AUTHORS")
}
message(" Saving ", savefile, " with ", nrow(result), " rows.")
save(result, file = savefile)
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.