Can not install bioconductor packages on Rstudio new version 3.6

Hi everybody,
I am new here.
I am trying to install Bioconductor package ClusterProfiler on Rstudio version 3.6 and it shows me an error. I tried completely all solutions in the internet but still got nothing. I am using Ubuntu 18 bionic distribution.

Here is a error below >>>>

I type the code
" if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")

BiocManager::install("clusterProfiler") "

and get this >>>
The downloaded source packages are in
‘/tmp/Rtmp7OYXhR/downloaded_packages’
installation path not writeable, unable to update packages: mgcv, survival
Warning messages:
1: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘units’ had non-zero exit status
2: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘ggforce’ had non-zero exit status
3: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘ggraph’ had non-zero exit status
4: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘enrichplot’ had non-zero exit status
5: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
installation of package ‘clusterProfiler’ had non-zero exit status

This seems like a permissions issue, try installing as super user from your system terminal.

sudo su - -c "R -e \"BiocManager::install('clusterProfiler')\""

Also you can try manually updating the dependencies before installing from bioconductor

install.packages(c("mgcv", "survival"))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.