[R] sink() output to another directory
Rich Shepard
r@hep@rd @ending from @ppl-eco@y@@com
Fri Sep 14 00:32:46 CEST 2018
Neither ?sink nor ?capture.output indicates how the output file can be
specified to be in a directory other than the cwd.
When the cwd is ../analyses/ and I want the output to be in
../analyses/stat-summaries/ how do I write this?
sink('example-output.txt')
print(summary(df))
sink()
writes output to the current directory. My attempts to prefix the file name
with ./ or just / don't sit well with R. What is the proper syntax?
TIA,
Rich
More information about the R-help
mailing list