Hey,
I'm having trouble installing any development version of packages from github through {remotes}
or {devtools}
or using any other methods. mostly i keep getting the "had non-zero exit status".
Usually it'll ask me to update a package, which even if i click approve or update myself in a different session it won't help. I tried reinstalling R and Rstudio.
For example, here's a request for updating a package prior to even trying to install.
devtools::install_github("clauswilke/ggtext")
Downloading GitHub repo clauswilke/ggtext@master
These packages have more recent versions available.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: plyr (1.8.4 -> 1.8.5) [CRAN]
5: cli (1.1.0 -> 2.0.0) [CRAN]
6: backports (1.1.4 -> 1.1.5) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
3
Downloading GitHub repo clauswilke/gridtext@master
These packages have more recent versions available.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: xfun (0.10 -> 0.11 ) [CRAN]
5: cli (1.1.0 -> 2.0.0) [CRAN]
6: callr (3.3.2 -> 3.4.0) [CRAN]
7: backports (1.1.4 -> 1.1.5) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
2
xfun (0.10 -> 0.11 ) [CRAN]
cli (1.1.0 -> 2.0.0) [CRAN]
callr (3.3.2 -> 3.4.0) [CRAN]
backports (1.1.4 -> 1.1.5) [CRAN]
Installing 4 packages: xfun, cli, callr, backports
Installing packages into 'C:/Users/amitl/OneDrive/Old/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xfun_0.11.zip'
Content type 'application/zip' length 180850 bytes (176 KB)
downloaded 176 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/cli_2.0.0.zip'
Content type 'application/zip' length 392358 bytes (383 KB)
downloaded 383 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/callr_3.4.0.zip'
Content type 'application/zip' length 356928 bytes (348 KB)
downloaded 348 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/backports_1.1.5.zip'
Content type 'application/zip' length 68649 bytes (67 KB)
downloaded 67 KB
package 'xfun' successfully unpacked and MD5 sums checked
package 'cli' successfully unpacked and MD5 sums checked
package 'callr' successfully unpacked and MD5 sums checked
package 'backports' successfully unpacked and MD5 sums checked
Error: Failed to install 'ggtext' from GitHub:
Failed to install 'gridtext' from GitHub:
(converted from warning) cannot remove prior installation of package 'backports'
If i restart R or install.packages
on that specific package, or even add force = TRUE
or deps = FALSE
it won't necessarily ask me for updates but then I just get the following:
devtools::install_github("clauswilke/ggtext")
Downloading GitHub repo clauswilke/ggtext@master
Downloading GitHub repo clauswilke/gridtext@master
During startup - Warning message:
Setting LC_CTYPE= failed
✓ checking for file 'C:\Users\amitl\AppData\Local\Temp\Rtmpo7PwCm\remotes20cc62bb1123\clauswilke-gridtext-9378f70/DESCRIPTION' ...
─ preparing 'gridtext':
✓ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'gridtext_0.1.0.tar.gz'
Installing package into 'C:/Users/amitl/OneDrive/Old/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
Error: (converted from warning) Setting LC_CTYPE= failed
Execution halted
Error: Failed to install 'ggtext' from GitHub:
Failed to install 'gridtext' from GitHub:
(converted from warning) installation of package 'C:/Users/amitl/AppData/Local/Temp/Rtmpo7PwCm/file20cc30654672/gridtext_0.1.0.tar.gz' had non-zero exit status
>
#################################################### A different package #############################################
> devtools::install_github("kjhealy/socviz")
Downloading GitHub repo kjhealy/socviz@master
During startup - Warning message:
Setting LC_CTYPE= failed
✓ checking for file 'C:\Users\amitl\AppData\Local\Temp\Rtmpo7PwCm\remotes20cc52525027\kjhealy-socviz-d37f50f/DESCRIPTION' ...
─ preparing 'socviz':
✓ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a 'data/datalist' file should be added
─ building 'socviz_1.0.0.9000.tar.gz'
Installing package into 'C:/Users/amitl/OneDrive/Old/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
Error: (converted from warning) Setting LC_CTYPE= failed
Execution halted
Error: Failed to install 'socviz' from GitHub:
(converted from warning) installation of package 'C:/Users/amitl/AppData/Local/Temp/Rtmpo7PwCm/file20ccbbd30df/socviz_1.0.0.9000.tar.gz' had non-zero exit status
Here's my session info:
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=English_Israel.65001 LC_CTYPE=C LC_MONETARY=English_Israel.65001
[4] LC_NUMERIC=C LC_TIME=English_Israel.65001
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 rstudioapi_0.10 magrittr_1.5 usethis_1.5.1 devtools_2.2.1
[6] pkgload_1.0.2 R6_2.4.1 rlang_0.4.4 fansi_0.4.1 tools_3.6.2
[11] pkgbuild_1.0.6 sessioninfo_1.1.1 cli_2.0.1 withr_2.1.2 ellipsis_0.3.0
[16] remotes_2.1.0 assertthat_0.2.1 digest_0.6.23 rprojroot_1.3-2 crayon_1.3.4
[21] processx_3.4.1 callr_3.4.1 fs_1.3.1 ps_1.3.0 testthat_2.3.1
[26] curl_4.3 memoise_1.1.0 glue_1.3.1 compiler_3.6.2 desc_1.2.0
[31] backports_1.1.5 prettyunits_1.1.1