installation of tidyverse failed

Your problem is different from the one in the post you are referring to.

You are missing a couple of system dependencies (i. e. libcurl and libssl) you need to install these dependencies in your system (not in R) before trying to install those R packages. The exact commands to install those system libraries depend on what operating system you are using.

Also, please do not post screenshots, they are considered a bad practice here, post the console output as formatted code instead, here is how to do it.