working directrix problem

setwd("E:\Program Workshop about R\My Previous Training Materials\day1")
Error: '\P' is an unrecognized escape in character string starting ""E:\P"

How can I solve this problem .
plz help me

Hi @rinakumari2
Welcome to the Posit/RStudio Community Forum.

The backslash character (\) is a special "escape" character in R. The simplest solution is to swap all backslashes to forward slashes (/) in any directory string:

1 Like

Thanks a lot . Highly appreciated to your valuable response .

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.