This is a very common error, particularly with institution controlled machines. When R is installing a package, it will create a 00LOCK folder to store copies of things whilst it installs. But then at the end, it tries to delete it, but can't because of a lack of admin rights.
This happens a lot with tidyverse because it's trying to install a bunch of packages.
The easiest solution is to set your own library path in your own directory, one where you can control (e.g. your Documents folder).
If you run the command .libPaths() it will give you a list of directories that R looks for its libraries. It searches them in order and if you try to install a new package, it tries in the first one. You need to add a new directory to this list.
Create a directory you want to use, copy & paste the directory and then insert it into this line of code: