Delete \r\n\t in string in R

If you scrape a website, it is possbile that you extract some hidden text, e.g. \n = newline, \r = carriage return or \t = tab.

This is how you remove them from a string:

# data
# \r\n some_text

gsub('[\r\n\t]', '', data)

# result: 
# some_text