Skip to content

How do I use this? #8

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

Open
bladerunnerwalrus opened this issue Aug 20, 2024 · 3 comments
Open

How do I use this? #8

bladerunnerwalrus opened this issue Aug 20, 2024 · 3 comments

Comments

@bladerunnerwalrus
Copy link

I'm completely new to Zed and this extension. I use Rstudio for most tasks and typically work using .Rproj. I tried Sublime long time ago and there I could select code and send it to terminal with R session using a shortcut. I tried different combinations in Zed, but none seem to work. If there is any type of guide it would be very helpful. Thanks!

@dwexel
Copy link

dwexel commented Aug 22, 2024

you probably want to install a jupyter kernel for R, then make sure it's visible to zed by looking at the repl: sessions command and see it's there

IRkernel
or ark

then you can open any R file and there should be the option to start REPL

https://zed.dev/docs/repl#changing-kernels
https://zed.dev/blog/repl

@bladerunnerwalrus
Copy link
Author

you probably want to install a jupyter kernel for R, then make sure it's visible to zed by looking at the repl: sessions command and see it's there

IRkernel or ark

then you can open any R file and there should be the option to start REPL

https://zed.dev/docs/repl#changing-kernels https://zed.dev/blog/repl

Thank you! Yes, I did this both for Python and R, and my code runs. The only thing is that with R the output is really verbose, even for something simple as print("Hello") it outputs what I assume is a surrounding function. This isn't a case with Python, e.g., plt.show() just outputs the plot. Did I do something wrong?

@aymennasri
Copy link
Collaborator

you probably want to install a jupyter kernel for R, then make sure it's visible to zed by looking at the repl: sessions command and see it's there
IRkernel or ark
then you can open any R file and there should be the option to start REPL
https://zed.dev/docs/repl#changing-kernels https://zed.dev/blog/repl

Thank you! Yes, I did this both for Python and R, and my code runs. The only thing is that with R the output is really verbose, even for something simple as print("Hello") it outputs what I assume is a surrounding function. This isn't a case with Python, e.g., plt.show() just outputs the plot. Did I do something wrong?

@bladerunnerwalrus Can you give us an example of the verbose output?

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

3 participants