Skip to content

Commit

Permalink
Merge pull request #12 from kstawiski/kstawiski-patch-2
Browse files Browse the repository at this point in the history
Update setup.R
  • Loading branch information
kstawiski committed Feb 22, 2024
2 parents 3d6d2eb + 1706ba1 commit 41c053f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions vignettes/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
#r["CRAN"] = "https://cran.r-project.org"
#options(repos = r)

options(repos = c(CRAN = "https://packagemanager.rstudio.com/cran/latest"))
if(Sys.info()["sysname"] == "Linux") {
cat("This is Linux.")
if(system("awk -F= '/^NAME/{print $2}' /etc/os-release", intern = T) == "\"Ubuntu\"") {
cat(" Distro: UBUNTU ")
codename = system("cat /etc/os-release | grep UBUNTU_CODENAME | cut -d = -f 2", intern = T)
cat(codename)
options(repos = c(CRAN = paste0("https://packagemanager.rstudio.com/cran/__linux__/",codename,"/latest")))
}

}


tylko_cran = c("BiocManager","devtools","reticulate","remotes","keras","parallel")
if (length(setdiff(tylko_cran, rownames(installed.packages()))) > 0) {
install.packages(setdiff(tylko_cran, rownames(installed.packages())), ask = F) }
Expand Down

0 comments on commit 41c053f

Please sign in to comment.