The installation of package 'tidyverse' had non-zero exit status means it did not install properly. Not the most intuitive of messages.
You might try a straight
install.packages("tidyverse")
outside of the .Rmd file and see what happens.
It probably will not install but you can copy and paste the error messages here which should give us more to work on.
Sorry not to be more helpful.