Hello, I am trying to install ggpicrust2 in Rstudio, it keep telling me that there are no dependencies for your version R
I have 4.4 version
I have tried several options, but still keep getting the same errors
'''
install.packages("ggpicrust2")
devtools::install_github("cafferychen777/ggpicrust2")
''' for example, I used:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
pkgs <- c("phyloseq", "ALDEx2", "SummarizedExperiment", "Biobase", "devtools",
"ComplexHeatmap", "BiocGenerics", "BiocManager", "metagenomeSeq",
"Maaslin2", "edgeR", "lefser", "limma", "KEGGREST", "DESeq2")
for (pkg in pkgs) {
if (!requireNamespace(pkg, quietly = TRUE))
BiocManager::install(pkg)
}
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories",
package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cloud.r-project.org
Bioconductor version 3.19 (BiocManager 1.30.25), R 4.4.2 (2024-10-31)
Installing package(s) 'ALDEx2'
also installing the dependencies ‘RcppGSL’, ‘RcppZiggurat’, ‘Rfast’
trying URL 'https://cloud.r-project.org/src/contrib/RcppGSL_0.3.13.tar.gz'
Content type 'application/x-gzip' length 302527 bytes (295 KB)
downloaded 295 KB
trying URL 'https://cloud.r-project.org/src/contrib/RcppZiggurat_0.1.6.tar.gz'
Content type 'application/x-gzip' length 405526 bytes (396 KB)
downloaded 396 KB
trying URL 'https://cloud.r-project.org/src/contrib/Rfast_2.1.0.tar.gz'
Content type 'application/x-gzip' length 331500 bytes (323 KB)
downloaded 323 KB
trying URL 'https://bioconductor.org/packages/3.19/bioc/src/contrib/ALDEx2_1.36.0.tar.gz'
Content type 'application/x-gzip' length 3013549 bytes (2.9 MB)
downloaded 2.9 MB
- installing source package ‘RcppGSL’ ...
** package ‘RcppGSL’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gsl-config... /home/alla/miniconda3/bin/gsl-config
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’
using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c fastLm.cpp -o fastLm.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c init.c -o init.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c setErrorHandler.cpp -o setErrorHandler.o
g++ -std=gnu++17 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppGSL.so RcppExports.o fastLm.o init.o setErrorHandler.o -L/home/alla/miniconda3/lib -lgsl -lgslcblas -lm -L/usr/lib/R/lib -lR
installing to /home/alla/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-RcppGSL/00new/RcppGSL/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘RcppGSL’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/alla/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-RcppGSL/00new/RcppGSL/libs/RcppGSL.so':
libgsl.so.25: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed - removing ‘/home/alla/R/x86_64-pc-linux-gnu-library/4.4/RcppGSL’
ERROR: dependency ‘RcppGSL’ is not available for package ‘RcppZiggurat’ - removing ‘/home/alla/R/x86_64-pc-linux-gnu-library/4.4/RcppZiggurat’
ERROR: dependency ‘RcppZiggurat’ is not available for package ‘Rfast’ - removing ‘/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rfast’
ERROR: dependency ‘Rfast’ is not available for package ‘ALDEx2’ - removing ‘/home/alla/R/x86_64-pc-linux-gnu-library/4.4/ALDEx2’
The downloaded source packages are in
‘/tmp/Rtmp2qv0Li/downloaded_packages’
Installation paths not writeable, unable to update packages
path: /usr/lib/R/library
packages:
boot, codetools, foreign, lattice, nlme
path: /usr/lib/R/site-library
packages:
cli, glue, igraph, Rcpp, rlang
path: /usr/local/lib/R/site-library
packages:
brew, cpp11, crayon, evaluate, prettyunits, remotes, rprojroot, rstudioapi, withr
Warning messages:
1: In install.packages(...) :
installation of package ‘RcppGSL’ had non-zero exit status
2: In install.packages(...) :
installation of package ‘RcppZiggurat’ had non-zero exit status
3: In install.packages(...) :
installation of package ‘Rfast’ had non-zero exit status
4: In install.packages(...) :
installation of package ‘ALDEx2’ had non-zero exit status
'''
I also tried -
'''
BiocManager::install("RcppGSL")
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories",
package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cloud.r-project.org
Bioconductor version 3.20 (BiocManager 1.30.25), R 4.4.2 (2024-10-31)
Installing package(s) 'RcppGSL'
trying URL 'https://cloud.r-project.org/src/contrib/RcppGSL_0.3.13.tar.gz'
Content type 'application/x-gzip' length 302527 bytes (295 KB)
downloaded 295 KB
- installing source package ‘RcppGSL’ ...
** package ‘RcppGSL’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gsl-config... /home/alla/miniconda3/bin/gsl-config
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’
using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c fastLm.cpp -o fastLm.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c init.c -o init.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/home/alla/miniconda3/include -I../inst/include -I'/home/alla/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-LHi8Yy/r-base-4.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c setErrorHandler.cpp -o setErrorHandler.o
g++ -std=gnu++17 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppGSL.so RcppExports.o fastLm.o init.o setErrorHandler.o -L/home/alla/miniconda3/lib -lgsl -lgslcblas -lm -L/usr/lib/R/lib -lR
installing to /home/alla/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-RcppGSL/00new/RcppGSL/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘RcppGSL’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/alla/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-RcppGSL/00new/RcppGSL/libs/RcppGSL.so':
libgsl.so.25: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed - removing ‘/home/alla/R/x86_64-pc-linux-gnu-library/4.4/RcppGSL’
The downloaded source packages are in
‘/tmp/RtmpdI3XNc/downloaded_packages’
Installation paths not writeable, unable to update packages
path: /usr/lib/R/library
packages:
boot, codetools, foreign, lattice, nlme
path: /usr/lib/R/site-library
packages:
cli, glue, igraph, Rcpp, rlang
path: /usr/local/lib/R/site-library
packages:
brew, cpp11, crayon, evaluate, prettyunits, remotes, rprojroot, rstudioapi, withr
Warning message:
In install.packages(...) :
installation of package ‘RcppGSL’ had non-zero exit status
'''
I would appreciate any help
I dont want to update my R and Rstudio, because after that, all pakages are usually gone and I need to spend a lot of time to install them back.
Thank you
Best,
Alla