diff --git a/dependencies.R b/dependencies.R index 3a830a2..cb8ed4f 100755 --- a/dependencies.R +++ b/dependencies.R @@ -1,14 +1,17 @@ #!/usr/bin/env Rscript +# Install remotes +install.packages("remotes") + # Install latest ackages from Github # Requires dev version of covr (>= 3.5.1.9003) # Also install other package dependencies (for tests) github_packages <- c( - "r-lib/covr", - "pharmaR/riskmetric", - "Genentech/covtracer" + "https://github.com/r-lib/covr.git", + "https://github.com/pharmaR/riskmetric.git", + "https://github.com/Genentech/covtracer.git" ) -lapply(github_packages, remotes::install_github) +lapply(github_packages, remotes::install_git) # avoid API rate limiting # CRAN options(repos = c("https://cloud.r-project.org/")) diff --git a/report-generator.R b/report-generator.R index 7a48b92..3ab2f19 100755 --- a/report-generator.R +++ b/report-generator.R @@ -33,6 +33,8 @@ if (!file.exists(desc_file)) { } # Install package dependencies +install.packages("devtools") + if (!disable_install_dev_deps) { options("remotes.git_credentials" = git2r::cred_user_pass( username = "token",