Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jan 3, 2016 · 9 comments

Comments

@Tracy2014
Copy link

Actions:

  • open an R file
  • press command + R to execute the file

Error:

  • Please check TM_REXEC! sh: R: command not found
@luiscruz
Copy link

Same issue here 👎

@Bibiko
Copy link

Bibiko commented Feb 10, 2016

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
Copy link

lalas commented Feb 24, 2016

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

@Bibiko
Copy link

Bibiko commented Feb 24, 2016

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
Copy link

lalas commented Feb 24, 2016

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
Copy link

Bibiko commented Feb 25, 2016

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
Copy link

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
Copy link

Bibiko commented Mar 27, 2016

On 24 Mar 2016, at 15:44, tzakharko [email protected] 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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants