R/get_paths.R

Defines functions get_tracerer_paths

Documented in get_tracerer_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
#' @author Richèl J.C. Bilderbeek
#' @seealso for one file, use \code{\link{get_tracerer_path}}
#' @examples
#'   testit::assert(
#'     length(
#'       get_tracerer_paths(
#'         c(
#'           "beast2_example_output.log",
#'           "beast2_example_output.trees",
#'           "beast2_example_output.xml",
#'           "beast2_example_output.xml.state"
#'         )
#'       )
#'      ) == 4
#'    )
#' @export
get_tracerer_paths <- function(filenames) {

  for (i in seq_along(filenames)) {
    filenames[i] <- get_tracerer_path(filenames[i]) # nolint internal function
  }

  filenames
}
ropensci/tracerer documentation built on March 12, 2019, 8:30 p.m.