directory creation | R Documentation |
Instantiates the necessary folder structure for a directory, writes the setup configuration file, and fills the directory with content.
Options for pre-defined setups include setup_sandbox
for quick and flexible builds and setup_production
for robust, rigid builds, as defined in directory_settings
.
update_dir
updates an existing directory and update_sandbox
and update_production
are companions akin to their setup_<>
functions.
create_dir(
main = ".",
settings = directory_settings(),
quiet = FALSE,
verbose = FALSE
)
update_dir(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
new_datasets_controls = NULL,
new_models_controls = NULL,
settings = directory_settings(),
quiet = FALSE,
verbose = FALSE
)
update_production(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
settings = production_settings(),
quiet = FALSE,
verbose = TRUE
)
update_sandbox(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
new_datasets_controls = NULL,
new_models_controls = NULL,
settings = sandbox_settings(),
quiet = FALSE,
verbose = FALSE
)
setup_dir(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
new_datasets_controls = NULL,
new_models_controls = NULL,
settings = directory_settings(),
quiet = FALSE,
verbose = FALSE
)
setup_production(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
settings = production_settings(),
quiet = FALSE,
verbose = TRUE
)
setup_sandbox(
main = ".",
models = prefab_models(),
datasets = prefab_datasets(),
new_datasets_controls = NULL,
new_models_controls = NULL,
settings = sandbox_settings(),
quiet = FALSE,
verbose = FALSE
)
main |
|
settings |
|
quiet |
|
verbose |
|
models |
|
datasets |
|
new_datasets_controls |
Optional |
new_models_controls |
Optional |
The list
of directory settings invisible
-ly.
Directory orchestration functions:
directory configuration file
,
directory filling
,
directory paths
,
directory settings
## Not run:
main1 <- file.path(tempdir(), "standard")
main2 <- file.path(tempdir(), "sandbox")
main3 <- file.path(tempdir(), "production")
setup_dir(main = main1)
setup_sandbox(main = main2)
setup_production(main = main3)
update_dir(main = main1)
unlink(main1, recursive = TRUE)
unlink(main2, recursive = TRUE)
unlink(main3, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.