test_that("basic", {
fls <- list.files(path = tempdir(), pattern = "wav$|wac$|mp3$|flac$", full.names = TRUE)
unlink(fls)
data(list = c("Phae.long1", "Phae.long2", "lbh_selec_table"))
writeWave(Phae.long1, file.path(tempdir(), "Phae.long1.wav"))
writeWave(Phae.long2, file.path(tempdir(), "Phae.long2.wav"))
dsf <- duration_sound_files(path = tempdir())
expect_true(nrow(dsf) == 2 & sum(dsf$duration) > 4.2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.