How to fix "Kernel not found or was deleted" problem for R in Notebook

Wei Zhang 40 Reputation points
2024-02-29T18:27:16.5533333+00:00

When I open one notebook, choose the kernel "R" and wait for its preparation, it appears the following message. User's image

As a result, I cannot use the R interactive notebook. Could anyone give me a clue?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,557 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vahid Ghafarpour 21,085 Reputation points
    2024-03-01T03:16:08.2033333+00:00

    You can install the IRkernel with:

    install.packages("devtools")
    
    devtools::install_github("IRkernel/IRkernel")
    
    IRkernel::installspec()
    
    

    Close and reopen the notebook and the R kernel should be available.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.