Error U used without hex digits in character string starting C U when trying to read a csv file in R

+6 votes

I'm trying to read a csv file into R using this command:

ratings <- read_csv("C:\Users\Ali\Downloads\338_m7_dataset_v3.0.zip\338_m7_dataset_v3.0")

and throws this error:

Error: '\U' used without hex digits in character string starting ""C:\U"
Nov 26, 2018 in Data Analytics by Ali
• 11,360 points
44,943 views
Hi

still facing same after using \\ behalf of \.

Try using /. Actually, \\ should also work too.

See this - 

Is the issue solved @Suman?
thanks very much it worked
Hi @Raghu. Please upvote the answer if it has help you.

Thank you

3 answers to this question.

+2 votes
Best answer

Replace all \ with \\. Its trying skip all the further chars.

This should help:)

Transform data into actionable insights with our Data Analytics Course – Enroll today!

answered Nov 26, 2018 by Maverick
• 10,840 points

selected Dec 15, 2020 by MD
Thank, it was really helpfull!!!
Tambien me funcionó a mi esta recomendación, muchas gracias

Me alegro de ayudarte, amigo. Si tiene alguna pregunta sobre cualquier tecnología, puede publicarla aquí. que tengas un buen día

+1 vote
Thats because \ is used for escape line characeters, so use another \ to remove it .
answered Aug 8, 2019 by anonymous
0 votes
Hi,

You can replace all \ with \\. It's trying to skip all the further chars. Or you can use / instead of \. It will also work.
answered Dec 15, 2020 by MD
• 95,460 points

Related Questions In Data Analytics

+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying " cannot open the connection" when trying to install a package in R

Try install.packages(“package_name”, repos="http://cr ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,840 points
9,153 views
+5 votes
0 answers
0 votes
1 answer

Error saying "Error in df$item : object of type 'closure' is not subsettable" when trying to use arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
1,764 views
+1 vote
1 answer
+1 vote
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
7,996 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP