How do I get rid of this error?

Try

install.packages("stringi")