How to escape a backslash in R? [duplicate]

I found a solution that works

str = gsub("([\\])","", str)

Leave a Comment