Change the compound name to kegg id
Examples
compound_name <- c("2-Hydroxybutyric acid","1-Methyladenosine","tt","2-Aminooctanoic acid")
name2keggid(compound_name)
#> Warning: cannot remove file 'test.data.1', reason 'No such file or directory'
#> Warning: cannot remove file 'test.data.2', reason 'No such file or directory'
#> Name KEGG_id
#> 1 2-Hydroxybutyric acid C05984
#> 2 1-Methyladenosine C02494
#> 3 tt <NA>
#> 4 2-Aminooctanoic acid <NA>