CS1B - R package install issue

Discussion in 'CS1' started by Etaylor, Apr 14, 2023.

Tags:
  1. Etaylor

    Etaylor Made first post

    Hi,

    When I follow the instructions on installing packages that have been listed in the 'R_for_CS1_and_CS2_for_2023_Exams' document published by the IFOA I run into the following issue:

    > install.packages("Rtools")
    Warning in install.packages :
    unable to access index for repository https://cran.rstudio.com/src/contrib:
    cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
    WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

    https://cran.rstudio.com/bin/windows/Rtools/
    Installing package into ‘C:/Users/egtaylor/AppData/Local/R/win-library/4.2’
    (as ‘lib’ is unspecified)

    Warning in install.packages :
    unable to access index for repository https://cran.rstudio.com/src/contrib:
    cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
    Warning in install.packages :
    package ‘Rtools’ 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
    Warning in install.packages :
    unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.2:
    cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/PACKAGES'


    This is using RStudio with R 4.2.1 on my work laptop. This is the laptop I am planning to sit the exam with.

    Is anyone familiar with the issue here? Is it possibly due to security controls on my work laptop?

    Thank you
     
  2. Andrea Goude

    Andrea Goude ActEd Tutor Staff Member

  3. John Lee

    John Lee ActEd Tutor Staff Member

    Updating your version of R can also resolve this issue.
     

Share This Page