user297850 user297850 - 1 year ago 358
R Question

File path issues in R using Windows ("Hex digits in character string" error)

I run R on Windows, and have a csv file on the Desktop. I load it as follows,


but the R gives the following error message

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

So what's the correct way to load this file. I am using Vista

Answer Source

replace all the \ with \\.

it's trying to escape the next character in this case the U so to insert a \ you need to insert an escaped \ which is \\

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download