Error Message in R: unrecognized escape in character string (2 Examples)
In this R tutorial you’ll learn how to avoid the Error: ‘R’ is an unrecognized escape in character string starting “”C:R”.
Example 1: Replicating the Error Message – ‘R’ is an unrecognized escape in character string
read.csv("C:\R\file.csv") # False specification of slashes # Error: 'R' is an unrecognized escape in character string starting ""C:R" |
read.csv("C:\R\file.csv") # False specification of slashes # Error: 'R' is an unrecognized escape in character string starting ""C:R"
Example 2: Solving the Error Message – ‘R’ is an unrecognized escape in character string
read.csv("C:/R/file.csv") # Correct specification of slashes |
read.csv("C:/R/file.csv") # Correct specification of slashes
Related Tutorials & Further Resources
Please find some additional R programming tutorials on topics such as coding errors below.