Cannot install R packages in Jupyter Notebook

前端 未结 2 772
既然无缘
既然无缘 2020-12-06 01:03

I am trying to run R code in Jupyter and the R Kernel was added. Most of the time, packages can be installed successfully. However, some of the packages, such as RCurl

相关标签:
2条回答
  • 2020-12-06 01:14

    Try to specify CRAN as repository in your install.packages statement when installing RCurl and ggmap. For example:

    install.packages("RCurl", repos='http://cran.us.r-project.org')
    

    This Stack Overflow post on installing R packages through Anaconda/Jupyter beyond those included in R essential provides more detail.

    (Side note: I had encountered the same issue when trying to install R packages on computer clusters. This solution worked for me.)

    0 讨论(0)
  • 2020-12-06 01:26

    use conda comment:

    conda install r-RCurl

    0 讨论(0)
提交回复
热议问题