#' get.name
#'
#' Get KEGG object names from its API.
#' @param x KEGG code.
#' @return character name.
#'
#' @export
get.name <-
function(x){
inf <- readLines(paste("http://rest.kegg.jp/get/", x, sep=""))
coord <- grep("NAME", inf)
name <- gsub("^NAME\\s+|;","",inf[coord])
return(name)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.