require(csound)
require(testthat)
context("csound library getting and setting")
test_that("blank 'csoundlibrary' option returns error from getCsoundLibrary()", {
oldlib <- getOption("csoundlibrary")
options(csoundlibrary=NULL)
expect_error(getCsoundLibrary())
options(csoundlibrary=oldlib)
})
test_that("setting library by path works", {
path <- attr(getCsoundLibrary(), "path")
setCsoundLibrary(path)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.