Error occured again in the middle of running devtools::install_github("CSAFE-ISU/shoeprintr")

during installing shoeprintr
I got these errors. please help me out

─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'shoeprintr_0.1.tar.gz'
ERROR: failed to lock directory 'C:/R/R-4.2.2/library' for modifying
Try removing 'C:/R/R-4.2.2/library/00LOCK-shoeprintr'
Warning messages:
1: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\R\R-4.2.2\library\00LOCK\cli\libs\x64\cli.dll to C:\R\R-4.2.2\library\cli\libs\x64\cli.dll: Permission denied
2: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\R\R-4.2.2\library\00LOCK\rlang\libs\x64\rlang.dll to C:\R\R-4.2.2\library\rlang\libs\x64\rlang.dll: Permission denied
3: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\R\R-4.2.2\library\00LOCK\vctrs\libs\x64\vctrs.dll to C:\R\R-4.2.2\library\vctrs\libs\x64\vctrs.dll: Permission denied
4: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\R\R-4.2.2\library\00LOCK\tibble\libs\x64\tibble.dll to C:\R\R-4.2.2\library\tibble\libs\x64\tibble.dll: Permission denied
5: In i.p(...) :
The installation of the package ‘C:/Users/UserK/AppData/Local/Temp/RtmpYp3eAq/file25f03ba72fdc/shoeprintr_0.1.tar.gz

try this, restart your R session (without reloading workspace), then try your install again and report back :slight_smile:

Thank you for helping me
I did what you told me to do.
I deleted the folder you mentioned
I restarted R session by clicking Ctrl+Shift+F10
and ran > devtools::install_github("CSAFE-ISU/shoeprintr")
and I got the following errors

─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'shoeprintr_0.1.tar.gz'

  • installing source package 'shoeprintr' ...
    ** using staged installation
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
    namespace 'rlang' 1.0.6 is being loaded, but >= 1.1.0 is required
    Calls: ... namespaceImport -> loadNamespace -> namespaceImport -> loadNamespace
    Execution halted
    ERROR: lazy loading failed for package 'shoeprintr'
  • removing 'C:/R/R-4.2.2/library/shoeprintr'
    Warning messages:
    1: In file.copy(savedcopy, lib, recursive = TRUE) :
    problem copying C:\R\R-4.2.2\library\00LOCK\cli\libs\x64\cli.dll to C:\R\R-4.2.2\library\cli\libs\x64\cli.dll: Permission denied
    2: In file.copy(savedcopy, lib, recursive = TRUE) :
    problem copying C:\R\R-4.2.2\library\00LOCK\rlang\libs\x64\rlang.dll to C:\R\R-4.2.2\library\rlang\libs\x64\rlang.dll: Permission denied
    3: In file.copy(savedcopy, lib, recursive = TRUE) :
    problem copying C:\R\R-4.2.2\library\00LOCK\vctrs\libs\x64\vctrs.dll to C:\R\R-4.2.2\library\vctrs\libs\x64\vctrs.dll: Permission denied
    4: In i.p(...) :
    package C:/Users/UserK/AppData/Local/Temp/Rtmp8ut8K9/file1c2029e02b7c/shoeprintr_0.1.tar.gz’ has exited with a non-zero status

The message tells you to upgrade your rlang package

1 Like

problem solved! Thank you so much~~

This topic was automatically closed 7 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.