Running this command from RStudio will show this error. When you run this command from command line/ terminal then everything will be fine.
So just type R
from your command line.
Then Run below commands:
install.packages('devtools')
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…