After using Windows Explorer to navigate to a directory, I just want to copy and paste the directory in R, but I get this error:
I used the setwd() function and pasted the directory, but there is an answer!
By using readline(), you can paste the directory in with no issues:
After hitting enter, you'll be prompted for the directory. Paste the directory that you copied from Windows Explorer and voila!
You've changed your working directory with no path mucking.