Wrapper of dcmdump from DCMTK

dcmdump(file, ...)

dcmdump_full(file, ...)

Arguments

file

DICOM file name

...

options passed to dcmtk_cmd, other than intern

Value

Character vector of information

Note

dcmdump_full uses the frontopts = "-q --print-all --load-short --print-filename" by default

Examples

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