Skip to content

Commit

Permalink
Update install_senamhiR.R [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorIA committed Sep 27, 2018
1 parent 159f57d commit 4b74700
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions install_senamhiR.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ packages that we need to install it.\n\n")
proceed <- readline(prompt = "Would you like to proceed? (y/N)")

if (proceed == "Y" || proceed == "y") {
if("git2r" %in% rownames(installed.packages()) == FALSE) {
install.packages("git2r", repos = "https://cran.rstudio.com")
if (!any(c("devtools", "remotes") %in% rownames(installed.packages()))) {
install.packages("devtools")
}
if("devtools" %in% rownames(installed.packages()) == TRUE) {
devtools::install_git("https://gitlab.com/ConorIA/senamhiR.git")
} else if("remotes" %in% rownames(installed.packages()) == TRUE) {
remotes::install_github("r-pkgs/remotes")
devtools::install_gitlab("ConorIA/senamhiR")
} else {
source("https://raw.githubusercontent.com/r-pkgs/remotes/master/install-github.R")$value("r-pkgs/remotes")
}
remotes::install_git("https://gitlab.com/ConorIA/senamhiR.git")
remotes::install_gitlab("ConorIA/senamhiR")
}
} else {
stop("Review the remote code and try again.")
}

0 comments on commit 4b74700

Please sign in to comment.