karthik / Rtools

Sublime text package for R
33 stars 11 forks source link

Check immediately if it's an R file #9

Closed wch closed 12 years ago

wch commented 12 years ago

This makes it check whether the current file is an R file, and exit if it's not.

Previously, it checked for an R file only after doing a lot of work.

karthik commented 12 years ago

I've never had any of the issues you describe. Could you tell us a little bit more about your os and set up, please?

wch commented 12 years ago

Oh, this is just making things more efficient. As it stands, when run is called, this Rtools does some work grabbing text from regions and adding it to selection; only after that does it check whether it's an R file, and if not, it just exits. This patch makes it check at the very beginning if it's an R file, and exit if it's not.

I'm running R 2.15.0 on Mac OS X 10.7.