source(file.path(usethis::proj_get(), "vignettes", "_common.R")) path_proj <- tempfile("article-") fs::dir_create(path_proj)
use_ddd do?Given a path of the project root folder,
When use_ddd is called
command <- "use_ddd(path = '" %+% "." %+% "')" withr::with_dir(path_proj, eval(parse(text=command)))
Then the function copies the following files into the path/R:
copied_files <- list.files(path = file.path(path_proj, "R"))
With these files, a project can run domain objects created by ddd without
having the package installed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.