![]() ![]() scpt for TextWrangler to recognize the file (it turns out that you sometimes have to save the file with ‘script editor’, to get TextWrangler to recognize it, thanks Brian!). Note: for some versions of TextWrangler, you will have to rename the applescript from. It either executes your current selection, or the line on which your cursor is. You can assign a shortcut by going to the Window menu in TextWrangler, then choose Palettes -> Scripts and assign a shortcut, for instance cmd-return for the same behavior as the built-in R text editor. ![]() Put this in ~/Library/Application Support/TextWrangler/Scripts/. an applescript to execute the selection in TextWrangler.Go to TextWrangler’s preferences -> Languages, and add a new suffix mapping (e.g. Save this file in ~/Library/Application Support/TextWrangler/Language Modules/, and restart TextWrangler. It makes manipulating text a breeze, and its price just. It took me a while to find it, especially the script that only executes the selection in TextWrangler (as opposed to the complete file). TextWrangler is an excellent text editor for anyone who needs to work with large amounts of text, text in large numbers of files, or both. To get the most out of this combination, I searched the internet for syntax highlighting and for an apple script for executing my code directly from TextWrangler in R. However, the included text editor is not all that great, and that is why I use TextWrangler to edit my R scripts. R is an environment for statistical computing (see also ‘ Data Analysts Captivated by R’s Power’ in the New York Times) which I use on an almost daily basis. ![]()
0 Comments
Leave a Reply. |