However, when -o is a filepath, like /opt/software/test-nlrt this causes issues:
In file(file, ifelse(append, "a", "w")):
cannot open file '/opt/software/test-nlrt//opt/software/test-nlrt_NLRtracker.tsv': No such file or directory
I would suggest implementing either some string manipulation to remove most of the filepath, or simply not bothering with prepending the name of the output directory to the output file itself, which already lives in the output directory.
In the source code of
NLRtracker.R
it appears thatoutdir
, which is the-o
flag toNLRtracker.sh
, is prepended twice to_NLRtracker.tsv
:However, when
-o
is a filepath, like/opt/software/test-nlrt
this causes issues:I would suggest implementing either some string manipulation to remove most of the filepath, or simply not bothering with prepending the name of the output directory to the output file itself, which already lives in the output directory.