str_replace não substitui todas as ocorrências, mas gsub?
Estou tentando remover colchetes de uma string como a abaixo.
library(stringr)
x <- "(Verhoeff,1937)"
str_replace(string = x, pattern = "(\\()|(\\))", replacement = "")
[1] "Verhoeff,1937)"
gsub(pattern = "(\\()|(\\))", replacement = "", x = x)
[1] "Verhoeff,1937"
str_replace
parece não encontrar o colchete? Alguma idéia do porquê?