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

Issues when using R #93

Open
thadryanjs opened this issue Sep 12, 2023 · 2 comments
Open

Issues when using R #93

thadryanjs opened this issue Sep 12, 2023 · 2 comments

Comments

@thadryanjs
Copy link

Hello!

This is probably the slickest developer experience I've seen for Python data science in neovim. Thanks for your work on it.

I am able to get this working smoothly with Python, but can't recreate it using R.

I've created an ipynb that's running R code correctly.

I then run:

let g:jukit_shell_cmd='radian'

or:

let g:jukit_shell_cmd='R'

I open the file in neovim and hit <leader>np per the docs. I got the following message:

"test-R.ipynb" 100L, 5112B written
Error detected while processing function jukit#convert#notebook_convert[5]..<SNR>95_convert_to_script[12]..provider#python3#Call:
line   18:
Error invoking 'python_execute' on channel 12 (python3-script-host):
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "/home/thadryan/.local/share/nvim/lazy/vim-jukit/helpers/ipynb_convert/convert.py", line 120, in convert
    language, nb = get_nb_and_language(nb, lang)
  File "/home/thadryan/.local/share/nvim/lazy/vim-jukit/helpers/ipynb_convert/util.py", line 28, in get_nb_and_language
    lang_dict.get(language) is not None
AssertionError: Language `R` not supported
Press ENTER or type command to continue

Neovim:

NVIM v0.9.2
Build type: Release
LuaJIT 2.1.1694285958

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Can you point me in the right direction in terms of debugging this?

Thanks again.

@luk400
Copy link
Owner

luk400 commented Sep 17, 2023

Hi, please try again, should be fixed now

@thadryanjs
Copy link
Author

thadryanjs commented Sep 18, 2023

should be fixed now

Good to go, thank you!

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

2 participants