muschellij2 / dcmtk

Wrapper for 'DICOM' Toolkit ('DCMTK')
2 stars 1 forks source link

Error in system(cmd, intern = intern, ...) : 'C:/Program' not found #3

Open mr-usask opened 3 years ago

mr-usask commented 3 years ago

I am a regular user of your dcmtk R package; however, I have a strange error for the last three days. Whenever I run the burned_annot() function, I get the "Error in system(cmd, intern = intern, ...) : 'C:/Program' not found" error message. I tried on two different computers. The error message was the same. Please note that I could not find the executables for the burned_annot() in the installed folder in the R library. Here are details of the system and codes:

Windows 10 R 4.0.4 code: burned_annot("path to DICOM file") output: C:/Program Files/R/R-4.0.4/library/dcmtk/bin/dcmdump.exe -q --print-all --load-short --print-filename "C:/CCI/Test/DICOM/LV1/IM_0001"

Error in system(cmd, intern = intern, ...) : 'C:/Program' not found

Let me know if you need any further information. I really appreciate any help you can provide.

muschellij2 commented 3 years ago

Can you try:

remotes::install_github("muschellij2/dcmtk")

and try again?

mr-usask commented 3 years ago

My apology for the late. Yes, the code is running now. All I noticed your code now installs the "utf8" package. Thank you for your help.