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

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:

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

I then have the issue:

┌ 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 ?

I was able to solve it by typing:

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…