R/use_KEGGREST.R

Defines functions use_KEGGREST

# Query KEGGREST package

use_KEGGREST <- function(expr) {
  kegg_out <- try({ expr }, silent = TRUE)
  if (inherits(kegg_out, "try-error")) {
    message("'KEGGREST' query is not available at the moment. Are you connected",
            " to internet and if so, please, try again later.")
    return(NULL)
  }
  return(kegg_out)
}

Try the phoenics package in your browser

Any scripts or data that you put into this service are public.

phoenics documentation built on Sept. 11, 2024, 6:32 p.m.