View source: R/rename_beast2_options_filenames.R
rename_beast2_options_filenames | R Documentation |
Rename the filenames in the BEAST2 options
rename_beast2_options_filenames(beast2_options, rename_fun)
beast2_options |
a set of BEAST2 options, that are the R equivalent of the BEAST2 command-line options, as can be created by create_beast2_options |
rename_fun |
a function to rename a filename, as can be checked by check_rename_fun. This function should have one argument, which will be a filename or NA. The function should return one filename (when passed one filename) or one NA (when passed one NA). Example rename functions are:
|
a 'beast2_options' with the filenames it contains renamed
Richèl J.C. Bilderbeek
check_empty_beaustier_folders()
# beast2_options with local filenames
beast2_options <- create_beast2_options(
input_filename = "my.fas",
output_state_filename = "my_state.xml.state"
)
# Rename filenames to be in /my/new/folder
rename_beast2_options_filenames(
beast2_options = beast2_options,
rename_fun = beautier::get_replace_dir_fun("/my/new/folder")
)
check_empty_beaustier_folders()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.