# RCall: internet routines cannot be loaded -\> can't install R packages

**URL:** <https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202>\
**Category:** General Usage\
**Tags:** question, rcall\
**Created:** [June 25, 2024, 1:05pm UTC](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202 "2024-06-25T13:05:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [June 25, 2024, 1:05pm UTC](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202/1 "2024-06-25T13:05:51Z")

</div>

I have installer RCall making it point to my default R installation on Ubunu.

If I open a R terminal and I install a R package I have no issues, but if I use RCall in Julia like:

```julia
R> install.packages('Rcpp', repos='https://cloud.r-project.org/')

```

I then have the issue:

```julia
┌ Warning: RCall.jl: Installing package into ‘/home/lobianco/R/x86_64-pc-linux-gnu-library/4.2’
│ (as ‘lib’ is unspecified)
│ Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
│ internet routines cannot be loaded
│ Warning: package ‘Rcpp’ is not available for this version of R
│ 
│ A version of this package for your version of R might be available elsewhere,
│ see the ideas at
│ https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
└ @ RCall ~/.julia/packages/RCall/dDAVd/src/io.jl:172

```

Any clue on it ?

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [June 25, 2024, 1:29pm UTC](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202/2 "2024-06-25T13:29:27Z")

</div>

I was able to solve it by typing:

```julia
R"options(download.file.method='wget')"
R"install.packages('ggplot2', repos='https://cloud.r-project.org/')"

```

(on each session).

Don’t know the reason behind, as people refer to an antivirus effect but it’s not my case…
