tests/testthat/test-findAlpha.R

test_that("findAlpha works", {

    skip_on_cran()

    pathFileInput = system.file( "extdata", "exampleInputFile.csv", package = "ypssc" )

    temp = tempdir()
    if ( !dir.exists(temp) ) {
        dir.create(temp)
    }
    pathDirOutput = temp

    expect_output( findAlpha( pathFileInput = pathFileInput,
                              pathDirOutput = pathDirOutput, TRUE ),
                   "Analysis completed successfully!" )

    unlink( pathDirOutput, recursive = TRUE )

})
Stasharofi/ypssc documentation built on Dec. 18, 2021, 2:08 p.m.