@andresrcs
Here you are:
─ preparing 'rlang': (1.1s)
✓ checking DESCRIPTION meta-information ...
─ cleaning src
─ installing the package to process help pages (1s)
─ cleaning src (23.1s)
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'rlang_0.4.2.9000.tar.gz'
Error in loadNamespace(name) : there is no package called 'rlang'
Calls: options ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Error: Failed to install 'rlang' from GitHub:
(converted from warning) installation of package ‘C:/Users/XXXX/AppData/Local/Temp/xxxx/filexxxx/rlang_0.4.2.9000.tar.gz’ had non-zero exit status
Run `rlang::last_error()` to see where the error occurred.
>rlang::last_error()
error/rlang_error>
Failed to install 'rlang' from GitHub:
(converted from warning) installation of package ‘C:/Users/xxxx /AppData/Local/Temp/xxxx/filexxxxx/rlang_0.4.2.9000.tar.gz’ had non-zero exit status
Backtrace:
1. remotes::install_github("r-lib/rlang")
2. remotes:::install_remotes(...)
3. base::tryCatch(...)
4. base:::tryCatchList(expr, classes, parentenv, handlers)
5. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. value[[3L]](cond)
Run `rlang::last_trace()` to see the full context.
>rlang::last_trace()
Backtrace:
x
1. \-remotes::install_github("r-lib/rlang")
2. \-remotes:::install_remotes(...)
3. \-base::tryCatch(...)
4. \-base:::tryCatchList(expr, classes, parentenv, handlers)
5. \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. \-value[[3L]](cond)
<parent: error/install_error>
Failed to install 'rlang' from GitHub:
(converted from warning) installation of package ‘C:/Users/xxxx/AppData/Local/Temp/xxxxx/filexxxxx/rlang_0.4.2.9000.tar.gz’ had non-zero exit status
Now, when I install rlang from Cran, there is no error about namespace anymore, but when I try to install dev version afterwards, it stops where Permission denied error appears again. Deleting lock-rlang folder or rlang folder itself can't help as well.