# \donttest{
# Create a tiny example dataset in a temporary file
tmp <- tempfile(fileext = ".csv")
toy_data <- data.frame(
species = c("A", "A", "B", "B", "C", "C"),
trait1 = c(1, 2, 5, 6, 9, 10),
trait2 = c(3, 4, 7, 8, 11, 12),
trait3 = c(2, 3, 6, 7, 10, 11)
)
write.csv(toy_data, tmp, row.names = FALSE)
# Create a temporary output directory
out_dir <- tempdir()
# Set a named list of seeds for reproducibility
seeds <- list(betadisper = 123, permanova = 456)
# Run Orangutan on the toy dataset
res <- run_orangutan(
data_path = tmp,
output_dir = out_dir,
seeds = seeds,
verbose = FALSE
)
# Inspect returned object
str(res)
# Clean up temporary dataset file
unlink(tmp)
# }
Run the code above in your browser using DataLab