Get KEGG db with caching.
Details
The valid KEGG database names are:
kegg | pathway | brite | module | ko | genes |
Examples
# Saving in directory
data_dir <- tempdir()
kegg_compounds <- get_kegg_db("compound", directory = data_dir, verbose = TRUE)
#> Retrieving KEGG database: compound
#> Downloaded & saved KEGG database in: /tmp/Rtmpf7h8iD/kegg_compound.tsv
# Just returning without saving
kegg_genes <- get_kegg_db("compound", verbose = TRUE)
#> Retrieving KEGG database: compound
#> No 'bfc' or 'directory' provided. Not saving KEGG database only downloading and returning.