How can I get rid of the
It seems it is creating a problem with
devtools::check() on R 4.2.0 (but not on 4.1.2). The
rstudio.lock file only appears in the Windows Temp folder when opening RStudio with my primary package, not on other packages.
This thread started with me opening an issue on the
usethis package GitHub: usethis cannot find path with accents. · Issue #1630 · r-lib/usethis · GitHub
devtools::check() Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) : problem copying .\rempsyc\.Rproj.user\418BC976\viewer_history\viewhtml78018dad9 to C:\Users\rempsyc\AppData\Local\Temp\Rtmpm6A9ju\Rbuild3da8687e3541\rempsyc\.Rproj.user\418BC976\viewer_history\viewhtml78018dad9: Permission denied ERROR copying to build directory failed Error: System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed
Seems like it could be related to this change in
The default personal library on Windows, folder R\win-library\x.y where x.y stands for R release x.y.z, is now a subdirectory of local application data directory (usually a hidden directory C:\Users\username\AppData\Local).
I could not find any information on that sneaky
rstudio.lock file online.