TextWrangler is a handy text editor for writing code in R. You can interface it with R by saving a file available here and here to the TextWrangler folder in your Application Support directory.
One important instalation note: there are two Application Support directories, at least on my MacBook - one under MacintoshHD and one under my user name. Only the one under my username contains the Text Wrangler folder. The links above have full instalation information, minus this caveat.
The use of TextWrangler for general text editing and scripting is also discussed in the excellent book Practical Computing for Biologists.
One important instalation note: there are two Application Support directories, at least on my MacBook - one under MacintoshHD and one under my user name. Only the one under my username contains the Text Wrangler folder. The links above have full instalation information, minus this caveat.
The use of TextWrangler for general text editing and scripting is also discussed in the excellent book Practical Computing for Biologists.