create | R Documentation |
Discover dependencies and write a dependencies.json
file.
create(
dir = getwd(),
file = "dependencies.json",
output = dir,
installed = c("base", "recommended"),
overwrite = TRUE,
ask = TRUE
)
dir |
Path to the directory where the files to be scanned are located. |
file |
The name of the file to be save, default is |
output |
Path to the directory where JSON file should be written to. |
installed |
The |
overwrite |
Logical, should the |
ask |
Logical, asking confirmation before writing the |
Invisibly returns the list of file names that were created. The side effect is a JSON (and possibly a text for system requirements) file written to the hard drive. The function fails when there are no R related files in dir
.
dir <- system.file("examples/01-basic", package = "deps")
out <- tempdir()
create(dir, output = out, ask = interactive())
cat(readLines(file.path(out, "dependencies.json")), sep = "\n")
unlink(file.path(out, "dependencies.json"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.