-
Notifications
You must be signed in to change notification settings - Fork 157
Description
As I have understood, when renv uses a local package present in cache, it first copies it to a temp folder, then copies it again in the folder defined with variable RENV_PATHS_LIBRARY_ROOT. Unfortunately, for some of the packages (not all), for a reason I didn't understand, this may not work, yielding property rights error as below:
For example, when wanting to install package "NLP",
renv::install("NLP")
Installing NLP [0.2-1] ...
OK [linked cache]
Erreur : could not copy / move file 'C:\Users\BNCL_CB.FR1\AppData\Local\Temp\RtmpCwyyuw\renv-staging-add07f6a326e/NLP' to 'C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/source packages/transcriptomic pipeline/R-4.0/x86_64-w64-mingw32/NLP'
move: cannot rename file 'C:\Users\BNCL_CB.FR1\AppData\Local\Temp\RtmpCwyyuw\renv-staging-add07f6a326e/NLP' to 'C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/source packages/transcriptomic pipeline/R-4.0/x86_64-w64-mingw32/NLP', reason 'Accès refusé'
copy:
C:\Users\BNCL_CB.FR1\AppData\Local\Temp\RtmpCwyyuw seems the default folder used by renv to temporally copy files and folders before their final access, and I can copy files from there, or even remove them with R function file.copy.
Do you have an idea why renv seems not to be able to perform such an operation?
sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] BiocManager_1.30.10 compiler_4.0.3 tools_4.0.3 renv_0.12.5
renv::diagnostics()
Diagnostics Report -- renv [0.12.5]
===================================
# Session Info =======================
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] BiocManager_1.30.10 compiler_4.0.3 tools_4.0.3
[4] renv_0.12.5
# Project ============================
Project path: "C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/technical_reports/transcriptomic pipeline"
# User Profile =======================
[no user profile detected]
# Settings ===========================
List of 7
$ external.libraries : chr(0)
$ ignored.packages : chr(0)
$ package.dependency.fields: chr [1:3] "Imports" "Depends" "LinkingTo"
$ r.version : chr(0)
$ snapshot.type : chr "implicit"
$ use.cache : logi TRUE
$ vcs.ignore.library : logi TRUE
# Options ============================
List of 4
$ renv.consent : logi TRUE
$ renv.config.cache.enabled: logi FALSE
$ renv.config.copy.method : chr "R"
$ renv.verbose : logi TRUE
# Environment Variables ==============
HOME = C:\Users\BNCL_CB.FR1\Documents
LANG = <NA>
R_LIBS = <NA>
R_LIBS_SITE = <NA>
R_LIBS_USER = C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/source packages/transcriptomic pipeline/R-4.0/x86_64-w64-mingw32;C:/Users/BNCL_CB.FR1/AppData/Local/Temp/RtmpYRJ1dl/renv-system-library
RENV_DEFAULT_R_ENVIRON = <NA>
RENV_DEFAULT_R_ENVIRON_USER = <NA>
RENV_DEFAULT_R_LIBS = <NA>
RENV_DEFAULT_R_LIBS_SITE = <NA>
RENV_DEFAULT_R_LIBS_USER = C:/Users/BNCL_CB.FR1/Documents/R/win-library/4.0
RENV_DEFAULT_R_PROFILE = <NA>
RENV_DEFAULT_R_PROFILE_USER = <NA>
RENV_PATHS_LIBRARY_ROOT = C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/source packages
RENV_PATHS_LIBRARY_ROOT_ASIS = TRUE
RENV_PATHS_ROOT = C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/source packages
RENV_PROJECT = C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/technical_reports/transcriptomic pipeline
# PATH ===============================
- C:\Users\BNCL_CB.FR1\Documents\R\R-4.0.3\bin\x64
- C:\Program Files (x86)\Common Files\Oracle\Java\javapath
- C:\ProgramData\Anaconda3
- C:\ProgramData\Anaconda3\Library\usr\bin
- C:\ProgramData\Anaconda3\Library\bin
- C:\ProgramData\Anaconda3\Scripts
- C:\WINDOWS\system32
- C:\WINDOWS
- C:\WINDOWS\System32\Wbem
- C:\WINDOWS\System32\WindowsPowerShell\v1.0\
- C:\Program Files (x86)\Box\Box Edit\
- C:\Program Files\Java\jdk-13.0.1\bin
- C:\Program Files\R\R-3.6.1\bin\x64
- C:\swigwin-4.0.1
- C:\Program Files\CMake\bin
- C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
- C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
- C:\Program Files\Docker\Docker\resources\bin
- C:\ProgramData\DockerDesktop\version-bin
- C:\Program Files\Git\cmd
- C:\Users\BNCL_CB.FR1\scoop\apps\perl\current\perl\bin
- C:\Users\BNCL_CB.FR1\scoop\apps\perl\current\c\bin
- C:\Users\BNCL_CB.FR1\scoop\apps\perl\current\perl\bin
- C:\Users\BNCL_CB.FR1\scoop\apps\perl\current\perl\site\bin
- C:\Users\BNCL_CB.FR1\scoop\apps\latex\current\texmfs\install\miktex\bin\x64
- C:\Users\BNCL_CB.FR1\AppData\Local\Microsoft\WindowsApps
- C:\Users\BNCL_CB.FR1\AppData\Local\Programs\MiKTeX\miktex\bin\x64\
# Cache ==============================
There are a total of 421 package(s) installed in the renv cache.
Cache path: "C:/Users/BNCL_CB.FR1/Box/02. BNCL (PhD)/patrimony/source packages/cache/v5/R-4.0/x86_64-w64-mingw32"