The SendToR for TextWrangler AppleScript simply sends R routines to R from within TextWrangler. Aspects of the R program such as setting the working directory or creating a sink file are left to the user. If you want a Stata-style log, I suggest using the command:

sink(”filename.txt”,split=TRUE)

which will save the output to filename.txt but also display it in the R console.

An older version of SendToR for TextWrangler, in which the sink file is automatically created and opened in TextWrangler after the routine is processed is still available (I changed it because it never really worked correctly).


  • Quick navigation

  • Categories