Skip to contents

microCTr comes bundled with some example files in its inst/extdata directory. This function makes them easy to access.

Usage

mctr_ex(path = NULL)

Arguments

path

Name of file. If NULL, the example files will be listed.

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"