knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) options(crayon.enabled = FALSE, cli.unicode = FALSE)
The goal of usedrake is to make it easy to use drake. The package sets up the files to use for a drake analysis.
You can install usedrake from Github with:
remotes::install_github("tjmahr/usedrake")
For the purposes of demonstration, create a one-off empty directory.
# For the purposes of demonstration, work inside of a temporary folder one_off_dir <- file.path(tempdir(), "usedrake-demo") dir.create(one_off_dir) # Everything is empty dir(one_off_dir, recursive = TRUE)
use_drake()
will set up the project infrastruture in the folder.
usedrake::use_drake(one_off_dir)
These are the files that were created.
dir(one_off_dir, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.