-
Notifications
You must be signed in to change notification settings - Fork 291
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
Error in loadNamespace(name) : there is no package called 'IRkernel' #583
Comments
it says
so apparently you didn’t install |
Yep! Many times, with multiple variations, and in multiple kernel environments. I also tried manually dropping the IRkernel folder into a packages subdirectory - couldn't get anything to work. |
a common source of problems: the kernel is started directly from R, not inside of a shell. so if you set environment variables in to check which R binary is used you can do this (supply “ir” with your chosen kernelspec ID): $ r_bin=$(jupyter kernelspec list --json | jq -r '.kernelspecs.ir.spec.argv[0]')
$ echo $r_bin
/usr/lib64/R/bin/R
$ env -i $r_bin --slave -e 'library(IRkernel)' You should be able to do the above without an error. If you can’t, you need to fix that. Could you check? (if you don’t have and want jq installed, just search for the path to the R binary in the output of |
@loftusa I had to patch the ../anaconda3/share/jupyter/kernels/ir/kernel.json to point to the correct version of R, which wasn't the default version installed by the OS. |
In case this doesn’t fix the problem, please tell me and I’ll reopen this |
I have the same problem after I installed R version 3.5.2. I tried to modify the kernel.json and installed again and again but no luck. anyone knows how to solve this? "there is no package called 'IRkernel'" |
did you read this comment? |
yes, I did. it did not work for me. |
So the code above gave you “there is no package called 'IRkernel'”. That means that IRkernel is not installed for the R version that Jupyter tries to use.
|
Hi, I am having the same type of problem. This happened to me on a Mac and a Win10 PC. I solved it on the Mac by... removing hydrogen whatsoever and using another Atom plugin to execute R. However, on the PC I need to run both Python and R. Here is my kernelspec list, section on R:
The paths are correct and the referenced R has IRkernel package installed. Moreover, R is working perfectly in Jupyter Notebook - just not in Atom+hydrogen. Also, if I execute the command |
Well, I never understood the weird shortened windows paths, so have you tried using the full path? |
I am still having issues here. If it's can't find the libraries then it must mean that it's not looking into the right directory for the libraries. |
Yes, but if you start
I don’t have the slightest idea why it wouldn’t load when you start the IRernel. |
It's working for me now but I had to change this line to force it to read from the right library ".libPath('path/to/your/r/libs/');IRkernel::main()", |
Great! I have no idea which kinds of setup lead to this. I can’t just add something to kernel.json that sets So I think users with weird setups like you need to fix that themselves. |
Don't mean to necro an old issue, but I encountered this and think this is a common issue for Windows users who use RStudio to install the package. The problem is the Setting a user environment variable |
Ah nice. I don’t think we can improve this somehow from our side? Maybe detect if |
Cant really think of an easy way for this package to check--users just gotta be conscious of where packages are installing. May be possible to check all paths returned by libsPath and or ask the user to choose a libsPath entry if > 1 |
I had this issue today when a colleague pushed her renv environment to the project repository. When jupyter tries to load the R kernel, the renv environment takes precedence and will completely ignore my conda environment. Solution is either to delete the renv, or to install It's not something for you guys to fix, but just putting it here in case someone has the same issue. |
@flying-sheep Hi,Could you please give me some advice ? On a linux server, But I failed when creating an R notebook.
Here's a reminder that |
I can’t read the language that error text is in so I can’t help you here. |
Hey all. I'm trying to get an R kernel up and running in jupyter lab. I'm completely new to R (but use Python a bunch) and I'm trying to get it installed so that I can start playing with it in an environment I'm familiar with.
I can click 'R' to make a new R kernel within jupyter, but when I actually try to do anything in the notebook it doesn't do anything and then says there's no kernel.
Anybody know what the issue might be? terminal code is copy/pasted below.
The text was updated successfully, but these errors were encountered: