Может быть проще с sub или gsub?
> test <- "junk junk<a href=\"/wiki/abstraction_(mathematics)\" title=\"abstraction (mathematics)\"> junk junk" > gsub(pattern = "<.*>", replacement = "", x = test) [1] "junk junk junk junk"