source(file.path(usethis::proj_get(), "vignettes",  "_common.R"))
path_proj <- tempfile("article-")
fs::dir_create(path_proj)

What does 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.



tidylab/ddd documentation built on Jan. 6, 2021, 8:16 a.m.