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

0 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
• 10,430 points
1,610 views
Hi

still facing same after using \\ behalf of \.

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

See this - 

Is the issue solved @Suman?

2 answers to this question.

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

This should help:)
answered Nov 26, 2018 by Maverick
• 10,040 points
Thank, it was really helpfull!!!
0 votes
Thats because \ is used for escape line characeters, so use another \ to remove it .
answered Aug 8 by anonymous

Related Questions In Data Analytics

0 votes
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://cran.us.r-p ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
298 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,040 points
124 views
0 votes
1 answer
0 votes
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,040 points
396 views