Is there a different procedure in RStudio to update the package "cli". To be frank, I am not sure why I load cli, I assume it is part of RStudio or a dependency of one of the packages I use.
I get the error:
package ‘cli’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘cli’
Warning in install.packages :
problem copying D:\R\win-library\4.1\00LOCK\cli\libs\x64\cli.dll to D:\R\win-library\4.1\cli\libs\x64\cli.dll: Permission denied
Warning in install.packages :
restored ‘cli’