olshena / SNACS

0 stars 0 forks source link

Error: Skipping install of 'heatmap4' from a github remote, the SHA1 (67139515) has not changed since last install #1

Open rituroy opened 6 months ago

rituroy commented 6 months ago

I am trying to automatically install the package “heatmap4” when installing package “SNACS”. SNACS is dependent on heatmap4. Both packages are on github. Both are on private repositories. SNACS is here https://github.com/olshena/SNACS/tree/master/SNACS heatmap4 is here https://github.com/UCSF-CBI/heatmap4/tree/master/heatmap4

SNACS's DESCRIPTION file has these lines - Imports: heatmap4 Remotes: github::UCSF-CBI/heatmap4/heatmap4

I have my github token set in the R environment variable

I can install heatmap4 with these commands:

remove.packages("heatmap4") library(devtools) install_github("UCSF-CBI/heatmap4/heatmap4", build_vignettes = F)

When I run check command for SNACS, I get an error:

remove.packages("heatmap4") remove.packages("SNACS") library(devtools) devtools::check("SNACS",vignettes=F) ══ Documenting ══════════════════════════════════ ℹ Updating SNACS documentation ℹ Loading SNACS ℹ The package "heatmap4" is required. ✖ Would you like to install it?

1: Yes 2: No

Selection: Enter an item from the menu, or 0 to exit Selection: 1 heatmap4 (NA -> 671395154...) [GitHub] Downloading GitHub repo UCSF-CBI/heatmap4@HEAD ── R CMD build ────────────────────────────────── checking DESCRIPTION meta-information ... Skipping install of 'heatmap4' from a github remote, the SHA1 (67139515) has not changed since last install. Use force = TRUE to force installation

sessionInfo() R version 4.3.1 (2023-06-16) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Monterey 12.7.2

Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

attached base packages: [1] stats graphics grDevices utils
[5] datasets methods base

other attached packages: [1] devtools_2.4.5 usethis_2.2.2

... ... ...

rituroy commented 6 months ago

remotes::install_github("olshena/SNACS",subdir="/SNACS",build_vignettes=FALSE,force=TRUE) gives the message Downloading GitHub repo UCSF-CBI/heatmap4@HEAD Skipping heatmap4, it is already being installed

HenrikBengtsson commented 6 months ago

Installing R packages from private GitHub repositories requires setting up secret GitHub tokens in order to get access from R (e.g. GITHUB_PAT and GITHUB_TOKEN). Not worth it. Go public with both heatmap4 and SNACS. Then things will become much easier.