Skip to content
Prev 386994 / 398502 Next

Error when calling R from Python

Dear all,

my colleague posted our issue on stackoverflow:

Calling R script from Python does not save log file in version 4 -
Stack Overflow
[https://stackoverflow.com/questions/65887485/calling-r-script-from-python-does-not-save-log-file-in-version-4]

It is about this kind of call to R:

R.exe -f code.R --args "~/file.txt" 1> "~/log.txt" 2>&1".

The issue is that the log.txt file is not created when running R
4.x.x. The same code works perfectly fine with R 3.6.x. 

Any idea what's going wrong as of version 4? Regards Marcel?