When I run a batch file through system2 in R:
The following runs the batch file without any issue:
system2("Run.bat")
However, this one gives an error:
system2("Run", stdout=stdout, stderr=stderr)
Warning message:
running command '"Run.bat"' had status 1
Any insights on what might be causing this?