tidyHeatmap icon indicating copy to clipboard operation
tidyHeatmap copied to clipboard

Not installing ComplexHeatmap dependency when installing package from CRAN

Open luifrancgom opened this issue 2 years ago • 3 comments

When trying to install tidyHeatmap the ComplexHeatmap is not installed. Here is my session info and the message:

library(sessioninfo)

session_info(info = "platform")
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.2 (2023-10-31 ucrt)
#>  os       Windows 11 x64 (build 22621)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language (EN)
#>  collate  English_United States.utf8
#>  ctype    English_United States.utf8
#>  tz       America/Bogota
#>  date     2024-02-25
#>  pandoc   3.1.11 @ C:/Users/Usuario/AppData/Local/Pandoc/ (via rmarkdown)
#> 
#> ──────────────────────────────────────────────────────────────────────────────
install.packages("tidyHeatmap")
#> Installing package into 'C:/Users/Usuario/AppData/Local/R/win-library/4.3'
#> (as 'lib' is unspecified)
#> Warning: dependency 'ComplexHeatmap' is not available
#> package 'tidyHeatmap' successfully unpacked and MD5 sums checked
#> 
#> The downloaded binary packages are in
#>  C:\Users\Usuario\AppData\Local\Temp\RtmpULZcy5\downloaded_packages

Created on 2024-02-25 with reprex v2.1.0

luifrancgom avatar Feb 26 '24 02:02 luifrancgom

try to install ComplexHeatmap directly from Bioconductor BiocManager::install, you will probably find that ComplexHeatmap installation is failing for some reason.

stemangiola avatar Feb 26 '24 04:02 stemangiola

Thank you for your answer @stemangiola and for publishing this wonderful package

I am going to give you more context about why I am reporting this situation.

I am a professor and I am teaching a course related to marketing where I am using packages that allow the students to plot heat maps. In introductory courses about applying R people learn to use the command install.packages and they expect that all the dependencies are installed.

I know I can install the package with the following steps:

  • install.packages("BiocManager", repos = "https://cloud.r-project.org")
  • BiocManager::install("ComplexHeatmap")
  • install.packages("tidyHeatmap")

But believe me for new users this is an entry barrier and they will simply use another package or as a professor I will use other packages to teach the students about R because in an introductory course you will try to reduce the steps in relation to the installation process when using a package.

luifrancgom avatar Feb 26 '24 13:02 luifrancgom

In theory all dependencies are installed automatically. I'm not sure why it fits not work in your case.

I will double check if github action installation is failing too.

stemangiola avatar Feb 26 '24 20:02 stemangiola