R/get_babette_paths.R

Defines functions get_babette_paths

Documented in get_babette_paths

#' Get the full paths of files in the \code{inst/extdata} folder
#' @param filenames the files' names, without the path
#' @return the filenames' full paths, if and only if
#'   all files are present. Will stop otherwise.
#' @author Richèl J.C. Bilderbeek
#' @seealso for one file, use \code{\link{get_babette_path}}
#' @examples
#' get_babette_paths(c("anthus_aco.fas", "anthus_nd2.fas"))
#' @export
get_babette_paths <- function(filenames) {

  for (i in seq_along(filenames)) {
    filenames[i] <- babette::get_babette_path(filenames[i])
  }

  filenames
}
richelbilderbeek/rbeast2 documentation built on Sept. 27, 2021, 6:52 a.m.