tool_settings | R Documentation |
Tools to handle settings files included in this package. You almost certainly do not need to use any of this functions yourself. Instead, other functions in this package use them.
tool_settings_source_dir_path()
tool_settings_availability()
tool_settings_are_available(colnameset.name)
tool_settings_copy(tgt.dir.path, colnameset.name, verbose = TRUE)
colnameset.name |
one of the items returned by
|
tgt.dir.path |
Path to an existing directory. |
verbose |
If |
dir.path |
a character string; a path to a directory (that must exist) |
[iarccrgtools::tool_settings_source_dir_path]
returns a string, the
location of the settings files inside this R package.
[iarccrgtools::tool_settings_availability]
returns a data.table
with columns file_name
, file_path
, colnameset_name
,
tool_name
. This dataset describes for which column name sets a settings
file is available in this R package.
[iarccrgtools::tool_settings_are_available]
returns a TRUE
if a settings file is available for colnameset.name
within this R package.
[iarccrgtools::tool_settings_copy]
copies the settings file(s) from within
this R package to tgt.dir.path
.
# iarccrgtools::tool_settings_source_dir_path
stopifnot(
dir.exists(iarccrgtools::tool_settings_source_dir_path())
)
# iarccrgtools::tool_settings_availability
stopifnot(
is.data.frame(iarccrgtools::tool_settings_availability())
)
# iarccrgtools::tool_settings_are_available
stopifnot(
iarccrgtools::tool_settings_are_available("mandatory_check"),
iarccrgtools::tool_settings_are_available("all_multiple_primary"),
iarccrgtools::tool_settings_are_available("mandatory_icdo3_to_icd10")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.