#Test to see if ConvertFishbaseDiet works properly. #Will test data is downloaded, filtered, and formatted test_that("ConvertFishbaseDiet function works", { all.diets <- try(ConvertFishbaseDiet(ExcludeStage = NULL),silent = TRUE)#download all diet data if ("try-error"%in%class(all.diets)) { skip("could not connect to remote database") }else{ filtered.diets <- ConvertFishbaseDiet(ExcludeStage = "larvae")#download data without larval stages expect_true(nrow(filtered.diets$DietItems)