Could anyone explain why this error is occuring and how to troubleshoot?
I am controlling my school’s computer remotely and installed R 4.1.3 from the package in the school’s computer.
This is my session info:
sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
You are using an old, unsupported version of R, for which CRAN does not provide binary packages. CRAN only supports the last two versions of R (currently 4.2 and 4.3). This affects all packages on CRAN, not just igraph.
I suggest upgrading to the latest R, which will make package installation much easier for you.
I don’t use Windows so I can’t answer this. Why don’t you just try it? Some software can be installed without administrator access.
You might want to make your school aware that they are making it impossible to install any binary R packages, making R almost useless on their systems.
If you look at the CRAN page of any R packages that include binary components, you will see that these are available only for r-release (current version), r-oldrel (previous version) and sometimes r-devel (which will become the next version). For example:
You can still install these packages yourself, but then you need to compile them from sources and install all their dependencies. This requires some level of expert knowledge and can’t easily be done on Windows without administrator access.
In short, the only reasonable answer here is to contact your school’s IT department and request that they make the software you need for your work available to you.
As I said, to use older versions you need to compile them from source, for which you need to install the appropriate toolchain first. You will need administrator access to do this.
You’ll find older versions on CRAN (see “archive”). You can easily install them using the pak package (but compilation from source will be necessary).