Open rituroy opened 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
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.
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:
When I run check command for SNACS, I get an error:
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 installationMatrix 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
... ... ...