Looks like you have an old version of stringr installed. The negate argument was added in version 1.4.0. You could update to the latest version of stringr by running:
install.packages("stringr")
Alternatively, you could use ! to negate str_detect() like so:
library(tidyverse)
prove <- data.frame(
a = c(1, 2, 3),
b = c("test_4", "test_4fail", "test_5"),
c = c(8, 4, 5)
)
prove %>%
filter(!str_detect(b, "fail"))
#> a b c
#> 1 1 test_4 8
#> 2 3 test_5 5
Created on 2019-02-20 by the reprex package (v0.2.1)