renv cannot install packages from github.

Hello,

I am trying to set renv on a bookdown project that is already on-going. The bookdown project have packages from CRAN and from github. I am trying to set renv so that it can publish the new version of the book each time I push to the main branch. However, the action fails because it cannot install packages from github.
When I run renv::install(), the package from github cannot be installed. I have tried with two different packages and the same problem.

The steps I took:

The package install correctly:

  • renv::purge("cleaninginspectoR")
  • renv::install("impact-initiatives/cleaninginspectoR") or with devtools::install_github("impact-initiatives/cleaninginspectoR")

I have also try to start fresh with renv::init(bare = T)
I also have the same problem if I start a new project with renv.

The results from the getOption("download.file.method")
[1] "wininet"

The results from the renv::diagnostic()

Diagnostics Report [renv 0.16.0]
================================

# Session Info =======================
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_Switzerland.1252  LC_CTYPE=English_Switzerland.1252   
[3] LC_MONETARY=English_Switzerland.1252 LC_NUMERIC=C                        
[5] LC_TIME=English_Switzerland.1252    

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.1.0  bookdown_0.22   fastmap_1.1.0   cli_3.4.1      
 [5] htmltools_0.5.2 tools_4.1.0     rstudioapi_0.13 yaml_2.3.5     
 [9] rmarkdown_2.11  knitr_1.39      xfun_0.31       digest_0.6.29  
[13] rlang_1.0.3     renv_0.16.0     evaluate_0.15  

# Project ============================
Project path: "C:/Users/xxxxx/Desktop/git/rcookbook"

# Status =============================
* The project is already synchronized with the lockfile.

# Packages ===========================
                     Library Source   Lockfile Source Path Dependency
BH                  1.75.0-0   CRAN   1.75.0-0   CRAN  [1]   indirect
DBI                    1.1.3   CRAN      1.1.3   CRAN  [1]   indirect
DEoptimR               1.0-9   CRAN      1.0-9   CRAN  [1]   indirect
DT                      0.19   CRAN       0.19   CRAN  [1]   indirect
Formula                1.2-4   CRAN      1.2-4   CRAN  [1]   indirect
GenSA                  1.1.7   CRAN      1.1.7   CRAN  [1]   indirect
Hmisc                  4.7-0   CRAN      4.7-0   CRAN  [1]   indirect
KernSmooth           2.23-20   CRAN    2.23-20   CRAN  [1]   indirect
MASS                  7.3-54   CRAN     7.3-54   CRAN  [1]   indirect
Matrix                 1.3-3   CRAN      1.3-3   CRAN  [1]   indirect
MatrixModels           0.5-0   CRAN      0.5-0   CRAN  [1]   indirect
R.cache               0.15.0   CRAN     0.15.0   CRAN  [1]   indirect
R.methodsS3            1.8.2   CRAN      1.8.2   CRAN  [1]   indirect
R.oo                  1.25.0   CRAN     1.25.0   CRAN  [1]   indirect
R.utils               2.12.0   CRAN     2.12.0   CRAN  [1]   indirect
R6                     2.5.1   CRAN      2.5.1   CRAN  [1]   indirect
RColorBrewer           1.1-3   CRAN      1.1-3   CRAN  [1]   indirect
Rcpp                 1.0.8.3   CRAN    1.0.8.3   CRAN  [1]   indirect
RcppArmadillo     0.10.7.3.0   CRAN 0.10.7.3.0   CRAN  [1]   indirect
RcppEigen          0.3.3.9.2   CRAN  0.3.3.9.2   CRAN  [1]   indirect
Rttf2pt1               1.3.9   CRAN      1.3.9   CRAN  [1]   indirect
SparseM                 1.81   CRAN       1.81   CRAN  [1]   indirect
UpSetR                 1.4.0   CRAN      1.4.0   CRAN  [1]     direct
VIM                    6.1.1   CRAN      6.1.1   CRAN  [1]   indirect
abind                  1.4-5   CRAN      1.4-5   CRAN  [1]   indirect
askpass                  1.1   CRAN        1.1   CRAN  [1]   indirect
assertthat             0.2.1   CRAN      0.2.1   CRAN  [1]   indirect
backports              1.4.1   CRAN      1.4.1   CRAN  [1]   indirect
base64enc              0.1-3   CRAN      0.1-3   CRAN  [1]   indirect
bit                    4.0.4   CRAN      4.0.4   CRAN  [1]   indirect
bit64                  4.0.5   CRAN      4.0.5   CRAN  [1]   indirect
blob                   1.2.1   CRAN      1.2.1   CRAN  [1]   indirect
bookdown                0.22   CRAN       0.22   CRAN  [1]     direct
boot                  1.3-28   CRAN     1.3-28   CRAN  [1]   indirect
brio                   1.1.3   CRAN      1.1.3   CRAN  [1]   indirect
broom                  0.8.0   CRAN      0.8.0   CRAN  [1]   indirect
bslib                  0.3.1   CRAN      0.3.1   CRAN  [1]   indirect
cachem                 1.0.5   CRAN      1.0.5   CRAN  [1]   indirect
callr                  3.7.0   CRAN      3.7.0   CRAN  [1]   indirect
car                   3.0-12   CRAN     3.0-12   CRAN  [1]   indirect
carData                3.0-5   CRAN      3.0-5   CRAN  [1]   indirect
cellranger             1.1.0   CRAN      1.1.0   CRAN  [1]   indirect
checkmate              2.1.0   CRAN      2.1.0   CRAN  [1]   indirect
class                 7.3-19   CRAN     7.3-19   CRAN  [1]   indirect
classInt               0.4-7   CRAN      0.4-7   CRAN  [1]   indirect
cleaninginspectoR 0.0.0.9000 GitHub 0.0.0.9000 GitHub  [1]     direct
cli                    3.4.1   CRAN      3.4.1   CRAN  [1]   indirect
clipr                  0.8.0   CRAN      0.8.0   CRAN  [1]   indirect
cluster                2.1.2   CRAN      2.1.2   CRAN  [1]   indirect
codetools             0.2-18   CRAN       <NA>   <NA>  [2]       <NA>
colorspace             2.0-3   CRAN      2.0-3   CRAN  [1]   indirect
commonmark             1.8.0   CRAN      1.8.0   CRAN  [1]   indirect
compiler                <NA>   <NA>       <NA>   <NA>  [2]   indirect
corrplot                0.92   CRAN       0.92   CRAN  [1]   indirect
cowplot                1.1.1   CRAN      1.1.1   CRAN  [1]   indirect
cpp11                  0.4.2   CRAN      0.4.2   CRAN  [1]   indirect
crayon                 1.5.1   CRAN      1.5.1   CRAN  [1]   indirect
crosstalk              1.2.0   CRAN      1.2.0   CRAN  [1]   indirect
curl                   4.3.2   CRAN      4.3.2   CRAN  [1]   indirect
data.table            1.14.2   CRAN     1.14.2   CRAN  [1]     direct
dbplyr                 2.1.1   CRAN      2.1.1   CRAN  [1]   indirect
deldir                 1.0-6   CRAN      1.0-6   CRAN  [1]   indirect
desc                   1.4.1   CRAN      1.4.1   CRAN  [1]   indirect
diffobj                0.3.5   CRAN      0.3.5   CRAN  [1]   indirect
digest                0.6.29   CRAN     0.6.29   CRAN  [1]   indirect
dplyr                  1.0.9   CRAN      1.0.9   CRAN  [1]     direct
dtplyr                 1.2.2   CRAN      1.2.2   CRAN  [1]   indirect
e1071                 1.7-11   CRAN     1.7-11   CRAN  [1]   indirect
ellipsis               0.3.2   CRAN      0.3.2   CRAN  [1]   indirect
eulerr                 6.1.1   CRAN      6.1.1   CRAN  [1]     direct
evaluate                0.15   CRAN       0.15   CRAN  [1]   indirect
expss                 0.10.7   CRAN     0.10.7   CRAN  [1]     direct
extrafont               0.17   CRAN       0.17   CRAN  [1]   indirect
extrafontdb              1.0   CRAN        1.0   CRAN  [1]   indirect
fansi                  1.0.3   CRAN      1.0.3   CRAN  [1]   indirect
farver                 2.1.0   CRAN      2.1.0   CRAN  [1]   indirect
fastmap                1.1.0   CRAN      1.1.0   CRAN  [1]   indirect
fontawesome            0.2.2   CRAN      0.2.2   CRAN  [1]   indirect
forcats                0.5.1   CRAN      0.5.1   CRAN  [1]   indirect
foreign               0.8-81   CRAN     0.8-81   CRAN  [1]   indirect
fs                     1.5.2   CRAN      1.5.2   CRAN  [1]   indirect
gargle                 1.2.0   CRAN      1.2.0   CRAN  [1]   indirect
gdata                 2.18.0   CRAN     2.18.0   CRAN  [1]   indirect
generics               0.1.2   CRAN      0.1.2   CRAN  [1]   indirect
ggplot2                3.3.6   CRAN      3.3.6   CRAN  [1]     direct
ggpubr                 0.4.0   CRAN      0.4.0   CRAN  [1]     direct
ggrepel                0.9.1   CRAN      0.9.1   CRAN  [1]   indirect
ggsci                    2.9   CRAN        2.9   CRAN  [1]   indirect
ggsignif               0.6.3   CRAN      0.6.3   CRAN  [1]   indirect
ggthemes               4.2.4   CRAN      4.2.4   CRAN  [1]   indirect
glue                   1.6.2   CRAN      1.6.2   CRAN  [1]   indirect
goftest                1.2-2   CRAN      1.2-2   CRAN  [1]   indirect
googledrive            2.0.0   CRAN      2.0.0   CRAN  [1]   indirect
googlesheets4          1.0.0   CRAN      1.0.0   CRAN  [1]   indirect
grDevices               <NA>   <NA>       <NA>   <NA>  [2]   indirect
graphics                <NA>   <NA>       <NA>   <NA>  [2]   indirect
grid                    <NA>   <NA>       <NA>   <NA>  [2]   indirect
gridExtra                2.3   CRAN        2.3   CRAN  [1]   indirect
gtable                 0.3.0   CRAN      0.3.0   CRAN  [1]   indirect
gtools                 3.9.2   CRAN      3.9.2   CRAN  [1]   indirect
haven                  2.5.0   CRAN      2.5.0   CRAN  [1]   indirect
highr                    0.9   CRAN        0.9   CRAN  [1]   indirect
hms                    1.1.1   CRAN      1.1.1   CRAN  [1]   indirect
htmlTable              2.4.0   CRAN      2.4.0   CRAN  [1]   indirect
htmltools              0.5.2   CRAN      0.5.2   CRAN  [1]   indirect
htmlwidgets            1.5.4   CRAN      1.5.4   CRAN  [1]   indirect
httpuv                 1.6.5   CRAN      1.6.5   CRAN  [1]   indirect
httr                   1.4.3   CRAN      1.4.3   CRAN  [1]     direct
hypegrammaR            0.2.3 GitHub      0.2.3 GitHub  [1]     direct
ids                    1.0.1   CRAN      1.0.1   CRAN  [1]   indirect
insight               0.14.2   CRAN     0.14.2   CRAN  [1]   indirect
isoband                0.2.5   CRAN      0.2.5   CRAN  [1]   indirect
jpeg                   0.1-9   CRAN      0.1-9   CRAN  [1]   indirect
jquerylib              0.1.4   CRAN      0.1.4   CRAN  [1]   indirect
jsonlite               1.8.0   CRAN      1.8.0   CRAN  [1]     direct
kableExtra             1.3.4   CRAN      1.3.4   CRAN  [1]     direct
knitr                   1.39   CRAN       1.39   CRAN  [1]   indirect
koboquest              1.0.1 GitHub      1.0.1 GitHub  [1]   indirect
kobostandards     0.1.0.9000 GitHub 0.1.0.9000 GitHub  [1]   indirect
labeling               0.4.2   CRAN      0.4.2   CRAN  [1]   indirect
labelled               2.9.1   CRAN      2.9.1   CRAN  [1]   indirect
laeken                 0.5.2   CRAN      0.5.2   CRAN  [1]   indirect
later                  1.3.0   CRAN      1.3.0   CRAN  [1]   indirect
lattice              0.20-44   CRAN    0.20-44   CRAN  [1]   indirect
latticeExtra          0.6-29   CRAN     0.6-29   CRAN  [1]   indirect
lazyeval               0.2.2   CRAN      0.2.2   CRAN  [1]   indirect
lifecycle              1.0.1   CRAN      1.0.1   CRAN  [1]   indirect
lme4                  1.1-29   CRAN     1.1-29   CRAN  [1]   indirect
lmtest                0.9-38   CRAN     0.9-38   CRAN  [1]   indirect
lubridate              1.8.0   CRAN      1.8.0   CRAN  [1]     direct
lwgeom                 0.2-8   CRAN      0.2-8   CRAN  [1]   indirect
magrittr               2.0.3   CRAN      2.0.3   CRAN  [1]     direct
maptools               1.1-4   CRAN      1.1-4   CRAN  [1]   indirect
matrixStats           0.61.0   CRAN     0.61.0   CRAN  [1]   indirect
methods                 <NA>   <NA>       <NA>   <NA>  [2]   indirect
mgcv                  1.8-35   CRAN     1.8-35   CRAN  [1]   indirect
mice                  3.14.0   CRAN     3.14.0   CRAN  [1]   indirect
mime                    0.12   CRAN       0.12   CRAN  [1]   indirect
miniUI               0.1.1.1   CRAN    0.1.1.1   CRAN  [1]   indirect
minqa                  1.2.4   CRAN      1.2.4   CRAN  [1]   indirect
mitools                  2.4   CRAN        2.4   CRAN  [1]   indirect
modelr                 0.1.8   CRAN      0.1.8   CRAN  [1]   indirect
munsell                0.5.0   CRAN      0.5.0   CRAN  [1]   indirect
nabor                  0.5.0   CRAN      0.5.0   CRAN  [1]   indirect
nlme                 3.1-152   CRAN    3.1-152   CRAN  [1]   indirect
nloptr                 2.0.0   CRAN      2.0.0   CRAN  [1]   indirect
nnet                  7.3-16   CRAN     7.3-16   CRAN  [1]   indirect
nngeo                  0.4.5   CRAN      0.4.5   CRAN  [1]     direct
numDeriv          2016.8-1.1   CRAN 2016.8-1.1   CRAN  [1]   indirect
openssl                2.0.4   CRAN      2.0.4   CRAN  [1]   indirect
openxlsx               4.2.4   CRAN      4.2.4   CRAN  [1]     direct
parallel                <NA>   <NA>       <NA>   <NA>  [2]   indirect
pbkrtest               0.5.1   CRAN      0.5.1   CRAN  [1]   indirect
pillar                 1.7.0   CRAN      1.7.0   CRAN  [1]   indirect
pkgconfig              2.0.3   CRAN      2.0.3   CRAN  [1]   indirect
pkgload                1.2.4   CRAN      1.2.4   CRAN  [1]   indirect
plotly               4.9.4.1   CRAN    4.9.4.1   CRAN  [1]     direct
plyr                   1.8.6   CRAN      1.8.6   CRAN  [1]   indirect
png                    0.1-7   CRAN      0.1-7   CRAN  [1]   indirect
polyclip              1.10-0   CRAN     1.10-0   CRAN  [1]   indirect
polylabelr             0.2.0   CRAN      0.2.0   CRAN  [1]   indirect
polynom                1.4-0   CRAN      1.4-0   CRAN  [1]   indirect
praise                 1.0.0   CRAN      1.0.0   CRAN  [1]   indirect
prettydoc              0.4.1   CRAN      0.4.1   CRAN  [1]   indirect
prettyunits            1.1.1   CRAN      1.1.1   CRAN  [1]   indirect
processx               3.5.2   CRAN      3.5.2   CRAN  [1]   indirect
progress               1.2.2   CRAN      1.2.2   CRAN  [1]   indirect
promises             1.2.0.1   CRAN    1.2.0.1   CRAN  [1]   indirect
proxy                 0.4-27   CRAN     0.4-27   CRAN  [1]   indirect
ps                     1.6.0   CRAN      1.6.0   CRAN  [1]   indirect
purrr                  0.3.4   CRAN      0.3.4   CRAN  [1]     direct
qdapRegex              0.7.2   CRAN      0.7.2   CRAN  [1]     direct
quantreg                5.88   CRAN       5.88   CRAN  [1]   indirect
questionr              0.7.4   CRAN      0.7.4   CRAN  [1]   indirect
ranger                0.13.1   CRAN     0.13.1   CRAN  [1]   indirect
rappdirs               0.3.3   CRAN      0.3.3   CRAN  [1]   indirect
readr                  2.1.2   CRAN      2.1.2   CRAN  [1]     direct
readxl                 1.4.0   CRAN      1.4.0   CRAN  [1]     direct
rematch                1.0.1   CRAN      1.0.1   CRAN  [1]   indirect
rematch2               2.1.2   CRAN      2.1.2   CRAN  [1]   indirect
renv                  0.16.0   CRAN     0.16.0   CRAN  [1]     direct
reprex                 2.0.2   CRAN      2.0.2   CRAN  [1]   indirect
reshape                0.8.8   CRAN      0.8.8   CRAN  [1]     direct
reshape2               1.4.4   CRAN      1.4.4   CRAN  [1]     direct
rhandsontable          0.3.8   CRAN      0.3.8   CRAN  [1]   indirect
rlang                  1.0.3   CRAN      1.0.3   CRAN  [1]   indirect
rmarkdown               2.11   CRAN       2.11   CRAN  [1]     direct
robustbase            0.93-9   CRAN     0.93-9   CRAN  [1]   indirect
rpart                 4.1-15   CRAN     4.1-15   CRAN  [1]   indirect
rprojroot              2.0.3   CRAN      2.0.3   CRAN  [1]   indirect
rstatix                0.7.0   CRAN      0.7.0   CRAN  [1]   indirect
rstudioapi              0.13   CRAN       0.13   CRAN  [1]   indirect
rvest                  1.0.3   CRAN      1.0.3   CRAN  [1]   indirect
s2                     1.0.7   CRAN      1.0.7   CRAN  [1]   indirect
sass                   0.4.1   CRAN      0.4.1   CRAN  [1]   indirect
scales                 1.2.0   CRAN      1.2.0   CRAN  [1]     direct
sdcMicro               5.6.1   CRAN      5.6.1   CRAN  [1]     direct
selectr                0.4-2   CRAN      0.4-2   CRAN  [1]   indirect
sf                     1.0-7   CRAN      1.0-7   CRAN  [1]     direct
shiny                  1.7.1   CRAN      1.7.1   CRAN  [1]   indirect
shinyBS                 0.61   CRAN       0.61   CRAN  [1]   indirect
sjlabelled             1.1.8   CRAN      1.1.8   CRAN  [1]   indirect
sjmisc                 2.8.7   CRAN      2.8.7   CRAN  [1]     direct
sourcetools            0.1.7   CRAN      0.1.7   CRAN  [1]   indirect
sp                     1.5-0   CRAN      1.5-0   CRAN  [1]   indirect
spatial               7.3-14   CRAN       <NA>   <NA>  [2]       <NA>
spatstat               2.3-0   CRAN      2.3-0   CRAN  [1]     direct
spatstat.core          2.3-2   CRAN      2.3-2   CRAN  [1]   indirect
spatstat.data          2.1-0   CRAN      2.1-0   CRAN  [1]   indirect
spatstat.geom          2.3-1   CRAN      2.3-1   CRAN  [1]   indirect
spatstat.linnet        2.3-1   CRAN      2.3-1   CRAN  [1]   indirect
spatstat.sparse        2.0-0   CRAN      2.0-0   CRAN  [1]   indirect
spatstat.utils         2.2-0   CRAN      2.2-0   CRAN  [1]   indirect
splines                 <NA>   <NA>       <NA>   <NA>  [2]   indirect
srvyr                  1.1.1   CRAN      1.1.1   CRAN  [1]     direct
stats                   <NA>   <NA>       <NA>   <NA>  [2]   indirect
stringi                1.7.6   CRAN      1.7.6   CRAN  [1]   indirect
stringr                1.4.0   CRAN      1.4.0   CRAN  [1]     direct
styler                 1.8.0   CRAN      1.8.0   CRAN  [1]   indirect
survey                 4.1-1   CRAN      4.1-1   CRAN  [1]     direct
surveyweights          0.2.1 GitHub      0.2.1 GitHub  [1]     direct
survival              3.2-11   CRAN     3.2-11   CRAN  [1]   indirect
svglite                2.0.0   CRAN      2.0.0   CRAN  [1]   indirect
sys                      3.4   CRAN        3.4   CRAN  [1]   indirect
systemfonts            1.0.2   CRAN      1.0.2   CRAN  [1]   indirect
tensor                   1.5   CRAN        1.5   CRAN  [1]   indirect
testthat               3.0.3   CRAN      3.0.3   CRAN  [1]   indirect
tibble                 3.1.7   CRAN      3.1.7   CRAN  [1]     direct
tidyr                  1.2.0   CRAN      1.2.0   CRAN  [1]     direct
tidyselect             1.1.2   CRAN      1.1.2   CRAN  [1]   indirect
tidyverse              1.3.2   CRAN      1.3.2   CRAN  [1]     direct
tinytex                 0.42   CRAN       0.42   CRAN  [1]   indirect
tools                   <NA>   <NA>       <NA>   <NA>  [2]   indirect
tzdb                   0.3.0   CRAN      0.3.0   CRAN  [1]   indirect
units                  0.8-0   CRAN      0.8-0   CRAN  [1]   indirect
utf8                   1.2.2   CRAN      1.2.2   CRAN  [1]   indirect
utils                   <NA>   <NA>       <NA>   <NA>  [2]   indirect
uuid                   1.0-2   CRAN      1.0-2   CRAN  [1]   indirect
vcd                    1.4-8   CRAN      1.4-8   CRAN  [1]   indirect
vctrs                  0.4.1   CRAN      0.4.1   CRAN  [1]   indirect
viridis                0.6.2   CRAN      0.6.2   CRAN  [1]   indirect
viridisLite            0.4.0   CRAN      0.4.0   CRAN  [1]   indirect
vroom                  1.5.7   CRAN      1.5.7   CRAN  [1]   indirect
waldo                  0.4.0   CRAN      0.4.0   CRAN  [1]   indirect
webshot                0.5.2   CRAN      0.5.2   CRAN  [1]   indirect
weights                1.0.4   CRAN      1.0.4   CRAN  [1]     direct
withr                  2.5.0   CRAN      2.5.0   CRAN  [1]   indirect
wk                     0.6.0   CRAN      0.6.0   CRAN  [1]   indirect
xfun                    0.31   CRAN       0.31   CRAN  [1]   indirect
xlsformfill            0.1.0 GitHub      0.1.0 GitHub  [1]     direct
xml2                   1.3.3   CRAN      1.3.3   CRAN  [1]   indirect
xtable                 1.8-4   CRAN      1.8-4   CRAN  [1]   indirect
yaml                   2.3.5   CRAN      2.3.5   CRAN  [1]   indirect
zip                    2.2.0   CRAN      2.2.0   CRAN  [1]   indirect
zoo                    1.8-9   CRAN      1.8-9   CRAN  [1]   indirect

[1]: C:/Users/Yann SAY/Desktop/git/rcookbook/renv/library/R-4.1/x86_64-w64-mingw32
[2]: C:/Users/Yann SAY/AppData/Local/Temp/Rtmp6Py3cN/renv-system-library          

# ABI ================================
* ABI conflict checks are not yet implemented on Windows.

# User Profile =======================
[no user profile detected]

# Settings ===========================
List of 10
 $ bioconductor.version     : chr(0) 
 $ 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.cellar        : logi TRUE
 $ vcs.ignore.library       : logi TRUE
 $ vcs.ignore.local         : logi TRUE

# Options ============================
List of 9
 $ defaultPackages                     : chr [1:6] "datasets" "utils" "grDevices" "graphics" ...
 $ download.file.method                : chr "wininet"
 $ download.file.extra                 : NULL
 $ install.packages.compile.from.source: chr "interactive"
 $ pkgType                             : chr "both"
 $ repos                               : Named chr "https://cran.rstudio.com"
  ..- attr(*, "names")= chr "CRAN"
 $ renv.consent                        : logi TRUE
 $ renv.project.path                   : chr "C:/Users/Yann SAY/Desktop/git/rcookbook"
 $ renv.verbose                        : logi TRUE

# Environment Variables ==============
HOME                        = C:/Users/Yann SAY/Documents
LANG                        = <NA>
MAKE                        = <NA>
R_LIBS                      = <NA>
R_LIBS_SITE                 = <NA>
R_LIBS_USER                 = C:/Users/xxxxx/Desktop/git/rcookbook/renv/library/R-4.1/x86_64-w64-mingw32;C:/Users/xxxxx/AppData/Local/Temp/Rtmp6Py3cN/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/xxxxx/Documents/R/win-library/4.1
RENV_DEFAULT_R_PROFILE      = <NA>
RENV_DEFAULT_R_PROFILE_USER = <NA>
RENV_PROJECT                = C:/Users/xxxxx/Desktop/git/rcookbook

# PATH ===============================
- C:\Users\xxxxx\Documents\R\R-4.1.0\bin\x64
- C:\Program Files\Common Files\Oracle\Java\javapath
- C:\WINDOWS\system32
- C:\WINDOWS
- C:\WINDOWS\System32\Wbem
- C:\WINDOWS\System32\WindowsPowerShell\v1.0\
- C:\WINDOWS\System32\OpenSSH\
- C:\Program Files\IBM\SPSS\Statistics\24\JRE\bin
- C:\Program Files\Git\cmd
- C:\Users\xxxxx\AppData\Local\Programs\Python\Python311\Scripts\
- C:\Users\xxxxx\AppData\Local\Programs\Python\Python311\
- C:\Users\xxxxx\AppData\Local\Programs\Quarto\bin
- C:\Users\xxxxx\AppData\Local\Microsoft\WindowsApps
- C:\Users\xxxxx\AppData\Local\Programs\Git\cmd
- C:\Users\xxxxx\AppData\Roaming\TinyTeX\bin\win32

# Cache ==============================
There are a total of 366 package(s) installed in the renv cache.
Cache path: "C:/Users/xxxxx/AppData/Local/R/cache/R/renv/cache/v5/R-4.1/x86_64-w64-mingw32"

Thanks in advance!

The error message implies that renv is trying to install the cleaninginspectoR package from CRAN.

Did you mean to use renv::snapshot() and renv::restore() here, after calling renv::install("impact-initiatives/cleaninginspectoR")? It seems more likely to me that you want to call renv::snapshot() to save the state of your project library, and then use renv::restore() to install the requisite packages afterwards.

If not, you probably need a project DESCRIPTION file, with an appropriate Remotes: field. See the documentation at Install Packages — install • renv for more details.

I was trying to reproduce the renv installation from the github action. The description file worked.

Thanks.

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