Install XML on R 3.0.2 (windows)

Hello all. :wink:
I am trying to install XML package for this is a dependency of another package that I want to load. These jobs are all done on R version 3.0.2.

I've tried install.packages.

install.packages('XML')

Warning in install.packages :
  unable to access index for repository http://cran.mtu.edu/bin/windows/contrib/3.0
Error in readRDS(file) : 
  cannot read workspace version 3 written by R 4.0.0; need R 3.5.0 or newer
Installing package into β€˜C:/Users/okna0/Documents/R/win-library/3.0’
(as β€˜lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository http://cran.mtu.edu/bin/windows/contrib/3.0

   package β€˜XML’ is available as a source package but not as a binary

Warning in install.packages :
  package β€˜XML’ is not available (for R version 3.0.2)
Error in readRDS(file) : 
  cannot read workspace version 3 written by R 4.0.0; need R 3.5.0 or newer
Error in readRDS(file) : 
  cannot read workspace version 3 written by R 4.0.0; need R 3.5.0 or newer
Error in readRDS(pfile) : 
  cannot read workspace version 3 written by R 4.0.0; need R 3.5.0 or newer

It says that it cannot access the repository. I unchecked the R setting secure http, disabled firewall, and stopped anti-virus program but still the warning message come the same.

I also tried source file installation

install.packages("C:/Users/okna0/Desktop/no_replicate_fix_new/XML_3.99-0.3.tar.gz", repos = NULL, type = "source")

& r-devel binary file insallation

install.packages("C:/Users/okna0/Desktop/no_replicate_fix_new/XML_3.99-0.3.zip", repos = NULL, type = "win.binary")

These make same error.

Error in readRDS(pfile) : 
  cannot read workspace version 3 written by R 4.0.0; need R 3.5.0 or newer

I need to have this XML package installed as soon as possible. Please kindly help me out.

Ideally you should try to update R but these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) 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.

Thank you for kind reply.
Actually I have already tried the solutions you recommended.
I asked my boss and he said : In our office, internet don't have any restrictions.

Do you have any suggestions other than this?
I know that changing R version is the easiest, but at this moment I should stay in low version to load an old package.

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