This should be standard in Textmate, I don't know why one has to go through so many steps to get it working:
http://gragusa.wordpress.com/2007/11/11/textmate-emacs-like-indentation-for-r-files/
This blog is a repository of cool things relating to statistical computing, simulation and stochastic modeling.
Search
Thursday, April 23, 2009
How to update R bundle in textmate
Got this from the web somewhere:
Just create a script with the following content:
#!/bin/sh
LC_CTYPE=en_US.UTF-8
SVN=`which svn`
echo Changing to Bundles directory...
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
if [ -d /Library/Application\ Support/TextMate/Bundles/R.tmbundle ]; then
echo R bundle already exists - updating...
$SVN up "R.tmbundle"
else
echo Checking out R bundle...
$SVN --username anon --password anon co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle/
fi
echo Reloading bundles in TextMate...
osascript -e 'tell app "TextMate" to reload bundles'
Just create a script with the following content:
#!/bin/sh
LC_CTYPE=en_US.UTF-8
SVN=`which svn`
echo Changing to Bundles directory...
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
if [ -d /Library/Application\ Support/TextMate/Bundles/R.tmbundle ]; then
echo R bundle already exists - updating...
$SVN up "R.tmbundle"
else
echo Checking out R bundle...
$SVN --username anon --password anon co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle/
fi
echo Reloading bundles in TextMate...
osascript -e 'tell app "TextMate" to reload bundles'
Subscribe to:
Posts (Atom)