简体   繁体   中英

IProblem installing R XML package on windows

I`m keen to install the latest version of the R XML package on Windows which is not on CRAN

From other stackflow questions I have downloaded the relevant zip file XML_3.9-4.1.zip but need some step by step help

I have tried running

install.packages("C:\Users\pssguy\Downloads\XML_3.9-4.1.zip", repos = NULL, type="source")`

and get error

Error: '\U' used without hex digits in character string starting "C:\U"

Should I be unpacking the zip first?

There also seems to be a command mode option. Is that better and if so, what directory should I be in before and what would be exact code

TIA

\ is used to denote that you want to escape the following character in strings. Replace all of the \ in the path to the file with either \ or /

So change "C:\Users\pssguy\Downloads\XML_3.9-4.1.zip" to "C:\\Users\\pssguy\\Downloads\\XML_3.9-4.1.zip" or "C:/Users/pssguy/Downloads/XML_3.9-4.1.zip"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM