Giter Club home page Giter Club logo

Comments (8)

mattdowle avatar mattdowle commented on August 21, 2024

Ok so right click! Now I get the menu you show in README.md and "R Code Evaluation" and the "Evaluate" item. I selected a line of R and clicked "Evaluate" but nothing appears to happen. I started R in the Terminal and tried again but nothing happened. Btw, I just want to send the current selection to the Terminal, whatever the Terminal might be running at the time (usually either bash or R).

from r4intellij.

holgerbrandl avatar holgerbrandl commented on August 21, 2024

HI Mattdowie,

r4intellij does not work with the builtin terminal of Intellij yet. On Macos in can send the current line or selection to the terminal, iterm2, or to R.app. Under Windows it should send it to the R application. It's not yet supported under linux, because there's not generic way to communicate between apps on linux.

The shortcuts to do it are visible right next the action items in the context menu.

I hope this answers your question.

from r4intellij.

mattdowle avatar mattdowle commented on August 21, 2024

Ok but I am on Macos.

On Macos in can send the current line or selection to the terminal, iterm2, or to R.app.

Great. But exactly how? I have clicked R Code Evaluate -> Evaluate and nothing appears to happen.

from r4intellij.

mattdowle avatar mattdowle commented on August 21, 2024

Ah. Now I see that a new R app was started. That wasn't clear to me! It just appears in the dock and didn't come to the front of the screen. Ok so now I see that Ctrl+Option+Enter does send the line to that R.

Still stuck on how to send the current line to the terminal/iterm2. How to do that please?

from r4intellij.

holgerbrandl avatar holgerbrandl commented on August 21, 2024

You can change the evaluation target in the preferences.

There you can also change the focus behaviour. The default is here that the focus stays in intellij, but you can also change it so that it changes to the evaluation target.

from r4intellij.

mattdowle avatar mattdowle commented on August 21, 2024

Ok got it now. I changed evaluation target in preferences to Terminal and also changed Evaluate shortcut to a single F5 keypress. This is exactly what I wanted. Plus, evaluate sends to the last active Terminal, which is exactly what I wanted too so I can have multiple Terminals (similar to NppToR on Windows). This is awesome! Never found a way to do this on Linux/Ubuntu, so very happy.
I'll submit a pull request to README.md (update: done and merged).

from r4intellij.

holgerbrandl avatar holgerbrandl commented on August 21, 2024

Actually it does not work on linux/ubuntu but just on macos. :-( All it's doing is to use applescript to remote-control the terminal/iterm/r.app. I'd love to add it for linux as well, but there does not seem any java-accessible framework to do it.

from r4intellij.

mattdowle avatar mattdowle commented on August 21, 2024

I never found a way in linux either and would like that as well. This great ability is the main reason I'm sticking with Mac for now, and your plugin for IntelliJ in particular.

from r4intellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.