[R-SIG-Mac] sink command in R for Mac
Ken Beath
kjbeath at kagi.com
Sat Nov 24 08:19:09 CET 2007
The same as on windows, except with unix file specifiers
sink('output.txt') will place the output file in the working directory
sink('~/Documents/output.txt') will place the output file in Documents
within your home folder
sink('~/Documents/myoutput/output.txt') will place the output file in
the myoutput folder of Documents within your home folder, and so on
sink('/Volumes/Backup/output.txt') will place the output file at the
top level of disk Backup
This would obviously be easier if there was a menu command.
Ken
On 24/11/2007, at 3:31 PM, David Kaplan wrote:
> Hi all,
>
> I'm used to using Windows commands to sink output into a specific
> sub-directory. What syntax do I use to sink output into a sub-
> directory on the Mac.
>
> Thanks in advance.
>
> David
>
> --
> ===============================================================
> David Kaplan, Ph.D.
> Professor
> Department of Educational Psychology
> University of Wisconsin - Madison
> Educational Sciences, Room, 1061
> 1025 W. Johnson Street
> Madison, WI 53706
>
> email: dkaplan at education.wisc.edu
> homepage:
> http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm
> Phone: 608-262-0836
> ===============================================================
>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list