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
Changes from 5 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 All @@ -18,7 +21,7 @@
if (!require("tinytex")) install.packages("tinytex", upgrade = "never", Ncpus = ncores)

# Conditionally install TinyTex
if(!dir.exists(paste(Sys.getenv("RUNNER_TEMP"), "TinyTeX", sep="/"))) {

Check warning on line 24 in dependencies.R

View workflow job for this annotation

GitHub Actions / Lint Code Base

file=/github/workspace/dependencies.R,line=24,col=3,[spaces_left_parentheses_linter] Place a space before left parenthesis, except in a function call.

Check warning on line 24 in dependencies.R

View workflow job for this annotation

GitHub Actions / Lint Code Base

file=/github/workspace/dependencies.R,line=24,col=63,[infix_spaces_linter] Put spaces around all infix operators.
# nolint start
tinytex_installer <- '
export TINYTEX_DIR=${RUNNER_TEMP}/TinyTeX
Expand All @@ -33,7 +36,7 @@
# nolint end
system(tinytex_installer)
tinytex::r_texmf()
permission_update <- '

Check warning on line 39 in dependencies.R

View workflow job for this annotation

GitHub Actions / Lint Code Base

file=/github/workspace/dependencies.R,line=39,col=24,[single_quotes_linter] Only use double-quotes.
chown -R root:staff ${RUNNER_TEMP}/TinyTeX
chmod -R g+w ${RUNNER_TEMP}/TinyTeX
chmod -R g+wx ${RUNNER_TEMP}/TinyTeX/bin
Expand Down
Loading