#' Get the full path of a file in the \code{inst/extdata} folder
#' @param filename the file's name, without the path
#' @return the full path to the filename
#' @author Richèl J.C. Bilderbeek
#' @seealso for more files, use \code{\link{get_tracerer_paths}}
#' @examples
#' get_tracerer_path("beast2_example_output.log")
#' get_tracerer_path("beast2_example_output.trees")
#' get_tracerer_path("beast2_example_output.xml")
#' get_tracerer_path("beast2_example_output.xml.state")
#' @export
get_tracerer_path <- function(filename) {
full <- system.file("extdata", filename, package = "tracerer")
if (!file.exists(full)) {
stop("'filename' must be the name of a file in 'inst/extdata'")
}
full
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.