Get path to microCTr examples
mctr_ex.Rd
microCTr comes bundled with some example files in its inst/extdata
directory. This function makes them easy to access.
Value
A string containing the name of the file, or a character vector containing the names of all example files.
Details
Adapted from readxl::readxl_example()
.
Examples
mctr_ex()
#> [1] "example-gen-key.csv" "example-genotype.xlsx" "example-mfe.csv"
#> [4] "example-trabecular.csv" "example-treatment.xlsx" "example-twice1.csv"
#> [7] "example-twice2.csv" "example-tx-key.csv"
mctr_ex("example-gen-key.csv")
#> [1] "/home/runner/work/_temp/Library/microCTr/extdata/example-gen-key.csv"