Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using remotes before remotes is installed #67

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions dependencies.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/usr/bin/env Rscript

# Install remotes
install.packages("remotes")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out that pak is more efficient and will eventually replace remotes. What do you think about swapping out remotes with pak?


# 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/"))
Expand Down
2 changes: 2 additions & 0 deletions report-generator.R
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading