Closed smbache closed 9 years ago
log_file only works in the environment from which it is called, and therefore has no effect when in a script which is sourced.
log_file
If log_file is executed outside of source it works, even if the remainder of the script is sourced.
source
Scripts executed with R CMD BATCH and Rscript works fine.
Not sure there is a way to fix things with source though.
Fixed via 3c90acf41dcdab47bddd9684fb722a880bff42cd
log_file
only works in the environment from which it is called, and therefore has no effect when in a script which is sourced.If
log_file
is executed outside ofsource
it works, even if the remainder of the script is sourced.Scripts executed with R CMD BATCH and Rscript works fine.
Not sure there is a way to fix things with
source
though.