tests/fullfile.R

###
### $Id: fullfile.R 22 2022-05-30 18:03:47Z proebuck $
###


##-----------------------------------------------------------------------------
test.fullfile <- function(input, expected) {
    output <- do.call(getFromNamespace("fullfile", "matlab"), input)
    identical(output, expected)
}

fullfile.expected <- file.path(path.expand("~"), "somedir", "foo.txt")

test.fullfile(list(dir    = path.expand("~"),
                   subdir = "somedir",
                   file   = "foo.txt"), fullfile.expected)

Try the matlab package in your browser

Any scripts or data that you put into this service are public.

matlab documentation built on July 1, 2024, 5:07 p.m.