Hi, I am running into an issue where I can't install any packages from github or source. I've updated my R to 3.6.1 and my Rstudio to 1.2.1335. I have Rtools 3.5 installed. Here is the error I am encountering:
devtools::install_github("tidyverse/tidyr")
Downloading GitHub repo tidyverse/tidyr@master
1 [main] tar 41916 fork: child -1 - forked process 20336 died unexpectedly, retry 0, exit code 0xC0000005, errno 11
/Rtools/bin/tar: child process: Cannot fork: Resource temporarily unavailable
/Rtools/bin/tar: Error is not recoverable: exiting now
External tar failed with `--force-local`, trying without
1 [main] tar 27680 C:\Rtools\bin\tar.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x4890000 - 0x4A90000, (child has 0x5000000 - 0x5200000), Win32 error 487
4270 [main] tar 27680 cygwin_exception::open_stackdumpfile: Dumping stack trace to tar.exe.stackdump
2 [main] tar 43064 fork: child -1 - forked process 27680 died unexpectedly, retry 0, exit code 0x100, errno 11
/Rtools/bin/tar: child process: Cannot fork: Resource temporarily unavailable
/Rtools/bin/tar: Error is not recoverable: exiting now
External tar failed with `--force-local`, trying without
Error: Failed to install 'tidyr' from GitHub:
Does not appear to be an R package (no DESCRIPTION)
In addition: Warning messages:
1: In utils::untar(tarfile, ...) :
‘tar.exe -xf "C:\Users\<USER>\AppData\Local\Temp\RtmpKkGFMJ\file96581ed8615.tar.gz" -C "C:/Users/<USER>/AppData/Local/Temp/RtmpKkGFMJ/remotes965869b42630"’ returned error code 2
2: In system(cmd, intern = TRUE) :
running command 'tar.exe -tf "C:\Users\<USER>\AppData\Local\Temp\RtmpKkGFMJ\file96581ed8615.tar.gz"' had status 2
Below is my sessionInfo()
sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)
Matrix products: default
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 rstudioapi_0.10 magrittr_1.5 usethis_1.5.1
[5] devtools_2.1.0 pkgload_1.0.2 R6_2.4.0 rlang_0.4.0
[9] tools_3.6.1 pkgbuild_1.0.3 sessioninfo_1.1.1 cli_1.1.0
[13] withr_2.1.2 remotes_2.1.0 assertthat_0.2.1 digest_0.6.20
[17] rprojroot_1.3-2 crayon_1.3.4 processx_3.4.0 callr_3.3.0
[21] fs_1.3.1 ps_1.3.0 curl_3.3 testthat_2.1.1
[25] memoise_1.1.0 glue_1.3.1 compiler_3.6.1 desc_1.2.0
[29] backports_1.1.4 prettyunits_1.0.2