Nothing
#' Get path to rbedrock example
#'
#' rbedrock comes bundled with a number of sample files in its `inst/extdata`
#' directory. This function make them easy to access.
#'
#' @param path Name of file or directory. If `NULL`, the examples will be
#' listed.
#' @export
#' @examples
#' rbedrock_example()
#' rbedrock_example("example1.mcworld")
#' rbedrock_example_world("example1.mcworld")
rbedrock_example <- function(path = NULL) {
if (is.null(path)) {
extdata <- fs::path_package("rbedrock", "extdata")
fs::path_file(fs::dir_ls(extdata))
} else {
fs::path_package("rbedrock", "extdata", path)
}
}
#' @export
#' @rdname rbedrock_example
rbedrock_example_world <- function(path) {
path <- rbedrock_example(path)
destdir <- tempfile("world")
suppressMessages(import_world(path, destdir))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.