Copy R interpreter output to file in tracedir