ct_spec_example()
resolves the local path to an example controlled
terminology file.
ct_spec_example(example)
The local path to an example file if example
is supplied, or a
character vector of example file names.
# Get the local path to controlled terminology example file 01
# Using the basename only:
ct_spec_example("ct-01-cm")
#> [1] "/tmp/Rtmp6cVVfl/temp_libpath49c0c16436aae/sdtm.oak/ct/ct-01-cm.csv"
# Using the file name:
ct_spec_example("ct-01-cm.csv")
#> [1] "/tmp/Rtmp6cVVfl/temp_libpath49c0c16436aae/sdtm.oak/ct/ct-01-cm.csv"
# Using the relative path:
ct_spec_example("ct/ct-01-cm.csv")
#> [1] "/tmp/Rtmp6cVVfl/temp_libpath49c0c16436aae/sdtm.oak/ct/ct-01-cm.csv"
# If no example is provided it returns a vector of possible choices.
ct_spec_example()
#> [1] "ct-01-cm.csv"