How to remove consecutive duplicate characters?

I'm new to R and have no background in programming. My problem is I have data like this: In the "path" column, I ...

Highlight duplicate values?

In Excel, Office 2007, I have the option to highlight duplicate values on the menu. Keep simple! Select the column, ...