R: How do I replace \\ with /?

Viewed 3269

In R I have a string like

file = "c:\\hello\\nihao"

How do I replace all the \ with /? The ?gsub documentation is really confusing! You should get extra points for pointing to a good R regex resource!!

3 Answers
Related