In the screenshot, the problem is just a simple typo (you have install.packages(tidyverse) instead of install.packages("tidyverse").
However, looking at your first post, I suspect that something went wrong in your initial tidyverse installation attempt. R's package installation messages are unfortunately not written with the novice in mind, so it is common that people don't notice the important bits. readr is one of the core tidyverse packages, so a successful tidyverse installation (even without dependencies = TRUE!) should have left you with a working installation of readr.
I'd vary a little bit from what @arihanth recommended, and suggest the following:
- Definitely delete that LOCK file, if you haven't already!
- Try installing tidyverse again. You can do this from RStudio or from RGui.exe, or even from the terminal — what matters most is that you do it in a clean session. Launch fresh, and do not run any code or load any packages before installing. If you have R set up so that it is automatically restoring stuff from your last session, then find the file called .Rdata (may be hidden by your OS) in your default working directory and rename it before starting up R or RStudio.
- In a new post here, on a blank line, click the little
</> button at the top of the posting box. This will insert a small template with the words “type or paste code here” selected.
- Copy all the output from the console that was generated when you tried to install
tidyverse (no screenshots please!)
- Paste the output here, replacing the “type or paste code here” line in the template,
(Following these steps makes it easier for helpers to read what you post and keeps the forum software from garbling it. If for some reason the console output winds up too long to post here, please post it as a Github gist or PasteBin paste or similar and link to it)
The goal here is to attempt a re-install of tidyverse and to examine the console output to determine what might be going wrong.
It's definitely frustrating to run into these installation problems! The only reassurance I can offer is that on average, it's not this hard, and that despite the confusion induced by the gnarly communication from R, most problems have fairly simple solutions in the end.