How to update cli package

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’

I got the same error. For me it helped to manually delete (maybe as administrator) D:\R\win-library\4.1\cli\libs\x64\cli.dll and then to reinstall cli.

That works - thank you.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.