Skip to content

Commit

Permalink
Merge pull request #419 from pmolfese/r4update
Browse files Browse the repository at this point in the history
Update @afni_R_package_install subscript for R versions > 4.0
  • Loading branch information
afni-rickr committed May 4, 2023
2 parents c47a39f + 024510c commit 25e70aa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/shiny/misc/OmicCircos_pkg_install.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
## 11/2017 Justin Rajendra
## 10/2019 added devel version for R version >= 3.6
## 06/2020 remove devel for R version >= 3.6
## 11/2022 add version 4 specific syntax

## get R version
r.ver <- R.Version()

if(r.ver$minor >= 6){

if(r.ver$major == 4) {
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager",repos="https://cloud.r-project.org")
BiocManager::install("OmicCircos")

} else if(r.ver$major == 3 & r.ver$minor >= 6){
if (!requireNamespace("BiocManager",quietly=TRUE))
install.packages("BiocManager",repos="https://cloud.r-project.org")

## The following initializes usage of Bioc devel
# BiocManager::install(version='devel',ask=FALSE)
BiocManager::install("OmicCircos")

Expand Down

0 comments on commit 25e70aa

Please sign in to comment.