textmate / r.tmbundle

TextMate support for R
25 stars 9 forks source link

Textmate R cuddle does not work with R 3.2.2 in Mac OX 10.11.1, TextMate version 2.0-beta.8.5 #11

Open Tracy2014 opened 8 years ago

Tracy2014 commented 8 years ago

Actions:

Error:

luiscruz commented 8 years ago

Same issue here :-1:

Bibiko commented 8 years ago

Hi. I'm not yet on Mac OS X 10.11 but could you please execute the following command in the Terminal and pass the output? which R

lalas commented 8 years ago

Same issue here. which R returns /usr/local/bin/R

Bibiko commented 8 years ago

Hmm, ok. What happens if you add the variable TM_REXEC in TextMate > Preferences > Variables and set it to /usr/local/bin/R ? Or better, check TextMate's variable PATH if you have the folder /usr/local/bin in it and if this variable setting is activated. E.g. $PATH:/opt/local/bin:/usr/local/bin:/usr/texbin

lalas commented 8 years ago

Thank you for the quick reply. I do have usr/local/bin in the PATH variable. My mistake was, and thanks to your reply i was fixed it, is that i didn't know that the TextMate's variable PATH needed to be activated.

Once i activated, it works fine.

Cheers

PS. Do you know why the variable name in TextMate are not active by default?

Bibiko commented 8 years ago

The best way is to ask Allan, but I think that it's always better to activate things if they're needed. Then one has more control about a system ;)

tzakharko commented 8 years ago

With system integrity protection in 10.11, R is now installed in /usr/local/bin

Can we have this location taken as default by the bundle, so that the users don't have to configure their path explicitly?

Bibiko commented 8 years ago

On 24 Mar 2016, at 15:44, tzakharko notifications@github.com wrote:

With system integrity protection in 10.11, R is now installed in /usr/local/bin

Can we have this location taken as default by the bundle, so that the users don't have to configure their path explicitly?

The default is that the R bundle commands try to start simply "R", i.e. they assume that R can be found by using the information stored in a/the PATH variable. Maybe a better way would be to activate TM's PATH variable (containing /usr/local/bin) by default.

--Hans

infininight commented 8 years ago

@Bibiko Is there a reason we aren't using requiredCommands here? Generally we want to avoid necessitating setting of PATH.