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"

Example 2: Solving the Error Message – ‘R’ is an unrecognized escape in character string

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top