#' 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 of the filename
#' @author Richèl J.C. Bilderbeek
#' @seealso for more files, use \code{\link{get_beautier_paths}}
#' @examples
#' check_empty_beautier_folder()
#'
#' get_beautier_path("test_output_0.fas")
#' get_beautier_path("anthus_aco.fas")
#' get_beautier_path("anthus_nd2.fas")
#'
#' check_empty_beautier_folder()
#' @export
get_beautier_path <- function(filename) {
full <- system.file("extdata", filename, package = "beautier")
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.