Installing the package

I have R tools.
I have been trying to install packages but everytime i mention a library, it says it's not writable. Please help!

Installing package into ‘C:/Users/ashna/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘R6’, ‘clipr’, ‘BH’, ‘glue’, ‘purrr’, ‘digest’, ‘rematch’, ‘prettyunits’, ‘assertthat’, ‘utf8’, ‘matrixStats’, ‘RcppArmadillo’, ‘forcats’, ‘hms’, ‘readr’, ‘rlang’, ‘tidyselect’, ‘vctrs’, ‘cellranger’, ‘progress’, ‘zip’, ‘stringi’, ‘cli’, ‘crayon’, ‘ellipsis’, ‘fansi’, ‘lifecycle’, ‘pillar’, ‘pkgconfig’, ‘magrittr’, ‘SparseM’, ‘MatrixModels’, ‘conquer’, ‘sp’, ‘haven’, ‘curl’, ‘data.table’, ‘readxl’, ‘openxlsx’, ‘tibble’, ‘minqa’, ‘nloptr’, ‘statmod’, ‘Rcpp’, ‘RcppEigen’, ‘carData’, ‘abind’, ‘pbkrtest’, ‘quantreg’, ‘maptools’, ‘rio’, ‘lme4’, ‘zoo’, ‘car’, ‘lmtest’

trying URL ''
Warning in install.packages :
InternetOpenUrl failed: 'The operation timed out'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL ''
Warning in install.packages :
download of package ‘R6’ failed

This seems like a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice ( or you could choose one that is geographically closer to you.
  • Disable secure download setting.
  • Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.

I installed it again and it is working. Not sure what happened! but thank you so much!!!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.