XML package installation Error - Permission denied

Hi all,

I am having error installing XML package.

I have tried several things but still unable to install XML.

I don't know if anyone has encountered this kind of error before and I will be glad if I can get a solution. See error message below

Installing package into ‘C:/Users/XYZ/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/XML_3.99-0.5.zip'
Content type 'application/zip' length 4261360 bytes (4.1 MB)
downloaded 4.1 MB

Error in install.packages : cannot open file 'C:/Users/XYZ/Documents/R/win-library/4.0/file6373748494/XML/COPYRIGHTS': Permission denied

Thank you

Not really a solution to your problem, sorry, but nowadays it is recommended to use xml2 instead, because XML isn't actively maintained (so you might get other problems with it once you succeed in installing it).

Now, obviously, if you're trying to re-use some older code where XML was used, switching to xml2 will require a bit of work. @nuest wrote an useful gist about migration from XML to xml2.

1 Like

This topic was automatically closed after 45 days. 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.