Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- Formatting produces misleading indentation HOT 2
- Suggest to use paste0 instead of paste(sep='') HOT 1
- Syntax error in function body produces error mark too early HOT 1
- Wrong warning 'unused parameter' for ...
- Inlining a function call produces wrong code HOT 1
- Highlight return in the same way as function HOT 1
- Renaming doesn't accept dots in identifier HOT 1
- Find usages returns unrelated identifiers HOT 1
- Search references doesn't find all references
- Preview for code style does not apply selected formatting
- R Console doesn't show input and misindents output HOT 1
- R run configuration shows wrong command line HOT 1
- Navigation using Alt+Up and Alt+Down should focus the function name, not the keyword HOT 1
- Cross-reference misses some references HOT 1
- Completion suggests wrong name first
- Intention Flip produces wrong code HOT 1
- Color Scheme example should include comment
- Allow highlighting of argument names in a different color
- Add semantic highlighting HOT 1
- Typo in color scheme: parenthesis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r4intellij.