Wrapper of dcmdump
from DCMTK
dcmdump(file, ...)
dcmdump_full(file, ...)
file | DICOM file name |
---|---|
... | options passed to |
Character vector of information
dcmdump_full
uses the
frontopts = "-q --print-all --load-short --print-filename"
by
default
if (!have_dcmtk_cmd("dcmdump")) {
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)
}
}
file = system.file("extdata", "example.dcm", package = "dcmtk")
dcmdump(file)
#> /tmp/RtmpbIKxLr/bin/dcmdump /home/runner/work/_temp/Library/dcmtk/extdata/example.dcm
#> Warning: running command '/tmp/RtmpbIKxLr/bin/dcmdump /home/runner/work/_temp/Library/dcmtk/extdata/example.dcm ' had status 126
#> Warning: dcmdump gave back non-zero status
#> character(0)
#> attr(,"status")
#> [1] 126