Description Usage Arguments Value Examples
View source: R/dcmtk_cmd_path.R
Uses Sys.which
to check if command is in the PATH.
1 | dcmtk_cmd_path(cmd)
|
cmd |
DCMTK command name |
Logical TRUE
if command is available.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if (!have_dcmtk_cmd("dcmodify")) {
install_dir = tempdir()
options(dcmtk.path = install_dir)
res = try({
install_dcmtk(install_dir = install_dir)
})
if (inherits(res, "try-error")) {
res = FALSE
}
if (!res) {
source_install_dcmtk(install_dir = install_dir)
}
}
dcmtk_cmd("dcmodify")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.