Unable to install maps package in R

Hello,

I am still very new t R and I am trying to create a map dashboard I started by using the following code:

map_data(world)

and this is what I get in the terminal

map_data(world_bank_pop)
:information_source: The package "maps" is required for map_data().
:heavy_multiplication_x: Would you like to install it?

1: Yes
2: No

Selection: 1
Installing package into ‘C:/Users/user/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/maps_3.4.2.zip'
Content type 'application/zip' length 3090157 bytes (2.9 MB)
downloaded 2.9 MB

package ‘maps’ successfully unpacked and MD5 sums checked
Error in unpackPkgZip(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib, libs_only, :
ERROR: failed to lock directory ‘C:\Users\user\AppData\Local\R\win-library\4.4’ for modifying
Try removing ‘C:\Users\user\AppData\Local\R\win-library\4.4/00LOCK’

Please let me know if there is any fix

I would try the advice from the message: