holgerbrandl / r4intellij

An integration of the R programming language into Intellij IDEA
BSD 2-Clause "Simplified" License
148 stars 28 forks source link

Variable Viewer #172

Open Jmarks199 opened 6 years ago

Jmarks199 commented 6 years ago

Is there a variable viewer similar to the RStudio variable viewer or to the native Pycharm variable viewer that is available in the Console? If not, are there any work arounds or solutions, such as an R plugin that integrates with the console?

holgerbrandl commented 6 years ago

No there is no variable viewer at the moment. Adding some UI would be the easy part. The tricky bits would be to overcome the rather basic integration of the R session (which is currently based on simple IO stream redirection). Because of that we can not easily query the state of R without polluting the console view.

I wonder @ktisha @khud how how the python plugin handles that integration. Is it via stream redirection as well, or does it use some more native approach to integrate/manage the python console process?

BerriJ commented 5 years ago

Would also love to have a variable view like R-Studio has.

holgerbrandl commented 5 years ago

Sorry @BerriJ but my argument from above has not changed. As long as we don't find a better (more native) way to talk to R internally, it's unlikely to happen.

jhegedus42 commented 5 years ago

@holgerbrandl I don't want to be the "smart guy around the block" but I was thinking about this "more native" way to talk to R.

So the problem is about polluting the console view ?

Is there a way to filter the "IO stream" which is redirected ? If yes, then ... :) I guess you know what I mean.

About the workaround @Jmarks199 : I wonder if it would be possible to attach R-Studio's runtime (or some other IDE's runtime) to the R process ? Then R-Studio could be used for variable viewing and IntelliJ for doing R / whatever coding.

holgerbrandl commented 5 years ago

We would need to talk to R via some low level interface and not by capturing the streams. I guess this is what RStudio does (but we would need to dig deeper into their code to learn about the technical details and requirments).