@Michael
Thanks for the reply, The R script independly runs a commandlinetool tool without any errors. But even with new addons from your solution. It is finished successfully without arguments. But the output directory is empty.
But when I run with arguments it is throwing errors.
Error in if (input == "" || length(grep("\\n|\\r", input))) { :
missing value where TRUE/FALSE needed
Calls: read_in_new_patients -> make_patients_table -> data.frame -> fread
Execution halted
[job hypoxia.cwl] completed permanentFail
{
"Hypoxiaresult": {
"location": "file:///cluster/home/user/Projects/legacy_new//HypScore1",
"basename": "HypScore1",
"class": "Directory",
"listing": [],
"path": "/cluster/home/user/Projects/legacy_new/HypScore1"
}
}
Final process status is permanentFail
For those of you who would have similar issues.
So, I have got the results now by making some minor changes. I changed the glob part from
$(inputs.outputdir)toruntime.outdir. And so now the CWL tool is now collecting the output files, where it is been executed.