Dear friends, I installed R version 4.2.0 last week and was trying to install package tableHTML and I got the following error message when attempting to do so: Could this be due to network restrictions?> install.packages("tableHTML")--- Please select a CRAN mirror for use in this session --- Warning: failed to download mirrors file (cannot open URL ' cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/Users/paulbernal/AppData/Local/Programs/R/R-4.2.0/doc/CRAN_mirrors.csv' Warning: unable to access index for repository mirrors.dotsrc.org/cran/src/contrib: cannot open URL 'mirrors.dotsrc.org/cran/src/contrib/PACKAGES' Warning: unable to access index for repository mirrors.dotsrc.org/cran/bin/windows/contrib/4.2: cannot open URL ' mirrors.dotsrc.org/cran/bin/windows/contrib/4.2/PACKAGES' Warning messages: 1: In download.file(url, destfile = f, quiet = TRUE) : URL 'cran.r-project.org/CRAN_mirrors.csv': status was 'SSL peer certificate or SSH remote key was not OK' 2: package ?tableHTML? is not available for this version of R [[alternative HTML version deleted]]
Seems like that mirror has not been refreshed to have files for 4.2. On May 17, 2022 9:43:33 AM PDT, Paul Bernal <paulbernal07 at gmail.com> wrote:>Dear friends, > >I installed R version 4.2.0 last week and was trying to install package >tableHTML and I got the following error message when attempting to do so: > >Could this be due to network restrictions? > >> install.packages("tableHTML") >--- Please select a CRAN mirror for use in this session --- >Warning: failed to download mirrors file (cannot open URL ' >cran.r-project.org/CRAN_mirrors.csv'); using local file >'C:/Users/paulbernal/AppData/Local/Programs/R/R-4.2.0/doc/CRAN_mirrors.csv' >Warning: unable to access index for repository >mirrors.dotsrc.org/cran/src/contrib: > cannot open URL 'mirrors.dotsrc.org/cran/src/contrib/PACKAGES' >Warning: unable to access index for repository >mirrors.dotsrc.org/cran/bin/windows/contrib/4.2: > cannot open URL ' >mirrors.dotsrc.org/cran/bin/windows/contrib/4.2/PACKAGES' >Warning messages: >1: In download.file(url, destfile = f, quiet = TRUE) : > URL 'cran.r-project.org/CRAN_mirrors.csv': status was 'SSL peer >certificate or SSH remote key was not OK' >2: package ?tableHTML? is not available for this version of R > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
On Tue, 17 May 2022 11:43:33 -0500 Paul Bernal <paulbernal07 at gmail.com> wrote:> Could this be due to network restrictions?Yes, definitely.> URL 'cran.r-project.org/CRAN_mirrors.csv': status was 'SSL > peer certificate or SSH remote key was not OK'Since most other people seem to be able to access this address, there must be something about your network connection. Most likely, this error message means that something is intercepting your connections to cran.r-project.org / mirrors.dotsrc.org, and your system (or at least the part of R which tries to connect there, which should be using the same certificate store) is not set up to trust that entity. Is there a network administrator you could contact with problems like this one? -- Best regards, Ivan