I have always work with R in RStudio and never had problem to install packages. I have recently installed Anaconda to use Jupyter Notebook for a collaborative project. However, when using R in Jupyter notebook, I am unable to install packages other then those in r-essentials
. The problem seems to come from the R installed by Anaconda. When I try
install.packages("cubature", repos = 'http://cran.us.r-project.org')
in its R console, I receive the following error
Warning: unable to access index for repository http://cran.us.r-project.org/src/
contrib:
internet routines cannot be loaded
Warning message:
package ‘cubature’ is not available (for R version 3.4.1)
Following this post, I tried to "add new package to the correct R library used by Jupyter", but I receive the same error. I tried to install the package from Github, but I needed devtools
, which is not in r-essentials
and needs therefore to be installed to. I also tried to import R package with rpy2
as suggested in this post, but the kernel simply died.
I still don't have anyway problem installing package with RStudio though. My (problematic) R version is
>R.Version()
$platform
[1] "x86_64-apple-darwin13.4.0"
$arch
[1] "x86_64"
$os
[1] "darwin13.4.0"
$system
[1] "x86_64, darwin13.4.0"
$status
[1] ""
$major
[1] "3"
$minor
[1] "4.1"
$year
[1] "2017"
$month
[1] "06"
$day
[1] "30"
$`svn rev`
[1] "72865"
$language
[1] "R"
$version.string
[1] "R version 3.4.1 (2017-06-30)"
$nickname
[1] "Single Candle"
Any suggestions? Thx for your help!