Skip to content

Commit

Permalink
Replace admiral.test with pharmaversesdtm (#142)
Browse files Browse the repository at this point in the history
* Replace admiral.test with pharmaversesdtm

* Automatic renv profile update.

* Automatic renv profile update.

* Automatic renv profile update.

* Propagation trigger

---------

Co-authored-by: galachad <[email protected]>
  • Loading branch information
galachad and galachad authored Sep 21, 2023
1 parent f0ec1bb commit ed6b6e9
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
))
)
)
packages[!(packages %in% c("admiral", "admiraldev", "admiralci", "admiral.test", getwd()))]
packages[!(packages %in% c("admiral", "admiraldev", "admiralci", "admiral.test", "pharmaversesdtm", getwd()))]
}

options(renv.snapshot.filter = .get_dependencies)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/propagate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
cicdguy
bms63
bundfussr
- name: admiral.test
- name: pharmaversesdtm
target-branch: devel
reviewers: |-
bms63
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/r-renv-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
))
)
)
packages[!(packages %in% c("admiral", "admiraldev", "admiralci", "admiral.test", getwd()))]
packages[!(packages %in% c("admiral", "admiraldev", "admiralci", "admiral.test", "pharmaversesdtm", getwd()))]
}
options(renv.snapshot.filter = .get_dependencies)
Expand All @@ -108,7 +108,7 @@ jobs:
loc_path <- find.package("admiraldev", lib.loc = .libPaths(), quiet = TRUE)
suggests <-
renv:::renv_dependencies_discover_description(loc_path, fields = "Suggests")[["Package"]]
suggests <- suggests[!(suggests %in% c("admiral", "admiraldev", "admiralci", "admiral.test"))]
suggests <- suggests[!(suggests %in% c("admiral", "admiraldev", "admiralci", "admiral.test", "pharmaversesdtm"))]
renv::install(suggests, repos = options("repos"))
}
Expand All @@ -126,12 +126,12 @@ jobs:
renv::install("openpharma/staged.dependencies", repos = options("repos"))
# Packages from stage dependencies to ignore
renv::settings$ignored.packages(c("admiral", "admiraldev", "admiral.test", "admiralci"))
renv::settings$ignored.packages(c("admiral", "admiraldev", "admiral.test", "admiralci", "pharmaversesdtm"))
renv::install("pharmaverse/admiral.test@devel", repos = options("repos"))
renv::install("pharmaverse/pharmaversesdtm@devel", repos = options("repos"))
renv::install("pharmaverse/admiraldev@devel", repos = options("repos"))
renv_install_suggests("admiraldev")
renv_install_suggests("admiral.test")
renv_install_suggests("pharmaversesdtm")
# Install dependencies
renv::settings$snapshot.type("explicit")
Expand Down
3 changes: 2 additions & 1 deletion renv/profiles/4.1/renv/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"admiral",
"admiraldev",
"admiral.test",
"admiralci"
"admiralci",
"pharmaversesdtm"
],
"package.dependency.fields": [
"Imports",
Expand Down
3 changes: 2 additions & 1 deletion renv/profiles/4.2/renv/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"admiral",
"admiraldev",
"admiral.test",
"admiralci"
"admiralci",
"pharmaversesdtm"
],
"package.dependency.fields": [
"Imports",
Expand Down
3 changes: 2 additions & 1 deletion renv/profiles/4.3/renv/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"admiral",
"admiraldev",
"admiral.test",
"admiralci"
"admiralci",
"pharmaversesdtm"
],
"package.dependency.fields": [
"Imports",
Expand Down
2 changes: 1 addition & 1 deletion vignettes/lock_and_prop.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The first step for requesting an update for a R package in the `renv.lock` file

## Propagation Process

Through GitHub Actions we have developed the ability to **propagate** updated lock files with our preferred versions of R and R packages throughout the family of admiral packages. This ensures that developers working on `{admiral.test}` and `{admiralonco}` have the same common environment as those working on `{admiraldev}` and `{admiralvaccines}`.
Through GitHub Actions we have developed the ability to **propagate** updated lock files with our preferred versions of R and R packages throughout the family of admiral packages. This ensures that developers working on `{pharmaversesdtm}` and `{admiralonco}` have the same common environment as those working on `{admiraldev}` and `{admiralvaccines}`.


The file that does the propagation process is called [`propagate.yml`](https://github.com/pharmaverse/admiralci/blob/main/.github/workflows/propagate.yml) located in the `.github/workflows` folder of the [admiralci repository](https://github.com/pharmaverse/admiralci/).
Expand Down

0 comments on commit ed6b6e9

Please sign in to comment.