* installing *source* package 'xml2' ...
** package 'xml2' successfully unpacked and MD5 sums checked
ERROR: cannot remove earlier installation, is it in use?
* removing 'd:/Rcompile/CRANpkg/lib/4.5/xml2'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.5/xml2'
Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
  problem copying d:\Rcompile\CRANpkg\lib\4.5\00LOCK-xml2\xml2\libs\x64\xml2.dll to d:\Rcompile\CRANpkg\lib\4.5\xml2\libs\x64\xml2.dll: Permission denied