Instale RTOOLS RSTUDIO

write('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', file = "~/.Renviron", append = TRUE)
Filipe_Carvalho