Skip to contents

Get the full path of a file in the inst/extdata folder

Usage

get_beastier_path(filename)

Arguments

filename

the file's name, without the path

Value

the full path to the filename. Will stop if the file is absent in the inst/extdata folder

See also

for more files, use get_beastier_paths

Author

Richèl J.C. Bilderbeek

Examples

get_beastier_path("beast2_example_output.log")
#> [1] "/usr/local/lib/R/site-library/beastier/extdata/beast2_example_output.log"
get_beastier_path("beast2_example_output.trees")
#> [1] "/usr/local/lib/R/site-library/beastier/extdata/beast2_example_output.trees"
get_beastier_path("beast2_example_output.xml")
#> [1] "/usr/local/lib/R/site-library/beastier/extdata/beast2_example_output.xml"
get_beastier_path("beast2_example_output.xml.state")
#> [1] "/usr/local/lib/R/site-library/beastier/extdata/beast2_example_output.xml.state"