# \donttest{
# Single AphiaID
try(single_taxa <- get_worms_classification(109604, verbose = FALSE))
if (exists("single_taxa")) print(single_taxa)
# Multiple AphiaIDs
try(multiple_taxa <- get_worms_classification(c(109604, 376667), verbose = FALSE))
if (exists("multiple_taxa")) print(multiple_taxa)
# Hierarchy with ranks in the string
try(with_rank <- get_worms_classification(c(109604, 376667),
add_rank_to_hierarchy = TRUE,
verbose = FALSE))
# Print hierarchy columns with ranks
if (exists("with_rank")) print(with_rank$worms_hierarchy[1])
# Compare with result when add_rank_to_hierarchy = FALSE
if (exists("multiple_taxa")) print(multiple_taxa$worms_hierarchy[1])
# }
Run the code above in your browser using DataLab