Hello, unfortunately, I cannot install packages into my library under
C:R/R-4.2.2/library.
If I reply no to the question ' Do you want to install from sources the package which needs compilation?" then it does temporarily download (ex. C:\Users\MY_UNDER_NAME\AppData\Local\Temp\Rtmpc7SkRr\downloaded_packages).
I suspect this may be even an R issue, instead of a Bioconductor as well, so apologies in advance if this is the case
if (!requireNamespace("BiocManager"))
install.packages("BiocManager")
BiocManager::install(version = "3.16")
Below is the error message in Rstudio
* installing *source* package 'DelayedArray' ...
** using staged installation
** libs
gcc -I"C:/R/R-42~1.2/include" -DNDEBUG -I'C:/R/R-4.2.2/library/S4Vectors/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_init_DelayedArray.c -o R_init_DelayedArray.o
sh: line 1: gcc: command not found
make: *** [C:/R/R-42~1.2/etc/x64/Makeconf:253: R_init_DelayedArray.o] Error 127
ERROR: compilation failed for package 'DelayedArray'
* removing 'C:/R/R-4.2.2/library/DelayedArray'
* restoring previous 'C:/R/R-4.2.2/library/DelayedArray'
* installing *source* package 'GenomicRanges' ...
** using staged installation
** libs
gcc -I"C:/R/R-42~1.2/include" -DNDEBUG -I'C:/R/R-4.2.2/library/S4Vectors/include' -I'C:/R/R-4.2.2/library/IRanges/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c IRanges_stubs.c -o IRanges_stubs.o
sh: line 1: gcc: command not found
make: *** [C:/R/R-42~1.2/etc/x64/Makeconf:253: IRanges_stubs.o] Error 127
ERROR: compilation failed for package 'GenomicRanges'
* removing 'C:/R/R-4.2.2/library/GenomicRanges'
* restoring previous 'C:/R/R-4.2.2/library/GenomicRanges'
The downloaded source packages are in
‘C:\Users\10496\AppData\Local\Temp\Rtmpc7SkRr\downloaded_packages’
Error in BiocManager::install(version = "3.16") :
non-numeric argument to binary operator
In addition: Warning messages:
1: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘DelayedArray’ had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘GenomicRanges’ had non-zero exit status