Skip to contents

Get the full paths of files in the inst/extdata folder

Usage

get_beastier_paths(filenames)

Arguments

filenames

the files' names, without the path

Value

the filenames' full paths. Will stop if a file is absent in the inst/extdata folder

See also

for one file, use get_beastier_path

Author

Richèl J.C. Bilderbeek

Examples

get_beastier_paths(
  c(
    "beast2_example_output.log",
    "beast2_example_output.trees",
    "beast2_example_output.xml",
    "beast2_example_output.xml.state"
  )
)
#> [1] "/github/home/R/x86_64-pc-linux-gnu-library/4.5/beastier/extdata/beast2_example_output.log"      
#> [2] "/github/home/R/x86_64-pc-linux-gnu-library/4.5/beastier/extdata/beast2_example_output.trees"    
#> [3] "/github/home/R/x86_64-pc-linux-gnu-library/4.5/beastier/extdata/beast2_example_output.xml"      
#> [4] "/github/home/R/x86_64-pc-linux-gnu-library/4.5/beastier/extdata/beast2_example_output.xml.state"