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

Catch patch up to v1.0.0 #2314

Closed
wants to merge 99 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
9bdd50c
v0.12.3 hotfix (#2172)
bms63 Oct 19, 2023
ca8455c
Closes #2127 Update website navbar with two buttons for slack and git…
sophie-gem Oct 23, 2023
1ebc258
Closes #2135 `preserve=` argument description update (#2173)
ddsjoberg Oct 23, 2023
dd8f8d9
Closes #2141 Superseded `derive_param_extreme_record()` (#2174)
ddsjoberg Oct 25, 2023
ae0fcdb
update templates (#2193)
dgrassellyb Oct 26, 2023
9cb4316
use ascii quotes (#2189)
romainfrancois Oct 26, 2023
ee3e5b1
No multiversion docs (#2202)
cicdguy Oct 30, 2023
8e5ef2d
Adding article with links to old website versions (#2190)
ddsjoberg Oct 30, 2023
659e161
Use a newer version of R for pkgdown (#2206)
cicdguy Oct 30, 2023
b8a5172
Closes #2107 Updated the documentation for 'end window' argument. (#2…
ashachakma Oct 31, 2023
a949c19
Update templates.yml (#2210)
dgrassellyb Oct 31, 2023
88628fc
Closes #2205 add previous website links (#2207)
ddsjoberg Nov 1, 2023
dbe33bb
Add secret for `gert`'s date fetcher (#2213)
cicdguy Nov 2, 2023
a69501b
Closes #2140 tmp_event_nr_var: Add tmp_event_nr_var to derive_extreme…
bundfussr Nov 2, 2023
c0ab881
Exit website version article early (#2216)
ddsjoberg Nov 2, 2023
4fd22ce
Closes #2139 Make derive_extreme_records() consistent (#2192)
jeffreyad Nov 3, 2023
89a26ab
Closes #2146 Fix Time Imputation Flag (#2195)
ahasoplakus Nov 6, 2023
5a0f7ed
Closes #2126 unify_joined: update derive_vars_joined(), derive_var_jo…
bundfussr Nov 6, 2023
214c835
Refactor pipelines to get R version only once for downstream workflow…
cicdguy Nov 7, 2023
708d232
Closes #2184 `check _keys` renaming scheme (#2200)
zdz2101 Nov 7, 2023
205e0d1
Closes #2142 Supersede `get_summary_records()` and enhance `derive_su…
zdz2101 Nov 9, 2023
5aa539d
add vbump job (#2221)
dgrassellyb Nov 13, 2023
8f62fda
[skip actions] Bump version to 0.12.3.9003
dgrassellyb Nov 13, 2023
a71f112
Closes #2222 clarify_mid: Clarify date_imputation = "mid" (#2229)
bundfussr Nov 13, 2023
bfba6f5
[skip actions] Bump version to 0.12.3.9004
bms63 Nov 13, 2023
e12e65a
Closes #2225 tidy up SUBGROUP column (#2226)
millerg23 Nov 13, 2023
5d7c232
[skip actions] Bump version to 0.12.3.9005
bms63 Nov 13, 2023
8a18e0e
Closes #2134 add general option signif_digits (#2212)
millerg23 Nov 14, 2023
492b44d
[skip actions] Bump version to 0.12.3.9006
bms63 Nov 14, 2023
f495b8f
[skip vbump] Revert version in NEWS.md (#2233)
cicdguy Nov 14, 2023
3036534
Closes #2175 Added deprecation badges to args without it/updated admi…
ddsjoberg Nov 17, 2023
5c88844
[skip actions] Bump version to 0.12.3.9007
bms63 Nov 17, 2023
f9fd467
Closes #2126 unify_joined: Remove too extensive documentation (#2237)
bundfussr Nov 20, 2023
18d9a38
[skip actions] Bump version to 0.12.3.9008
bms63 Nov 20, 2023
faf852b
Closes #2196: move dev process from admiraldev (#2228)
kaz462 Nov 20, 2023
e11104a
[skip actions] Bump version to 0.12.3.9009
bms63 Nov 20, 2023
780029f
Closes #2186 TERMID -> TERMNUM, TERMNAME -> TERMCHAR (#2241)
manciniedoardo Nov 21, 2023
fb0b0d9
[skip actions] Bump version to 0.12.3.9010
bms63 Nov 21, 2023
a3e50b2
Closes #2231 added check in `derive_vars_period()` to remove unused …
manciniedoardo Nov 21, 2023
048ec54
[skip actions] Bump version to 0.12.3.9011
bms63 Nov 21, 2023
578e54b
Closes #1728 merged_exist_msrc: Implement derive_flag_select_msrc() (…
bundfussr Nov 21, 2023
ce23782
[skip actions] Bump version to 0.12.3.9012
bms63 Nov 21, 2023
4c69809
Closes #2130 Cheatsheet (#2240)
manciniedoardo Nov 23, 2023
22ea4be
[skip actions] Bump version to 0.12.3.9013
manciniedoardo Nov 23, 2023
b36feb6
Closes #2239 changed links in Example Scripts to `use_ad_template()` …
manciniedoardo Nov 27, 2023
43cdba7
[skip actions] Bump version to 0.12.3.9014
bms63 Nov 27, 2023
01c7ade
Closes #2178 Created `derive_vars_computed()` (#2252)
gg106046 Nov 28, 2023
74c0071
[skip actions] Bump version to 0.12.3.9015
bms63 Nov 28, 2023
234b78d
Closes #2230 update_generic: rewrite "Generic Functions" vignette (#2…
bundfussr Nov 28, 2023
2de4a6d
[skip actions] Bump version to 0.12.3.9016
bms63 Nov 28, 2023
c126ac2
Closes #2138 Implement derive_vars_extreme_event() (#2236)
jeffreyad Nov 29, 2023
18a5eab
[skip actions] Bump version to 0.12.3.9017
bms63 Nov 29, 2023
f993c4f
Closes #2217 Update in navbar - added drop down in Get started and re…
ashachakma Nov 29, 2023
257b9fa
[skip actions] Bump version to 0.12.3.9018
bms63 Nov 29, 2023
4e09ce7
Closes #2230 update_generic: Add new functions and handling of NA for…
bundfussr Nov 30, 2023
a6959a4
[skip actions] Bump version to 0.12.3.9019
bms63 Nov 30, 2023
e1d0678
Closes #2218 Added `DTHCAUS`, `DTHCGR1` to ADSL template and vignette…
manciniedoardo Nov 30, 2023
a5bc664
[skip actions] Bump version to 0.12.3.9020
bms63 Nov 30, 2023
8bde600
Update admiraldiscovery link (#2266)
ddsjoberg Nov 30, 2023
8b83083
[skip actions] Bump version to 0.12.3.9021
bms63 Nov 30, 2023
f252025
Closes #2254 - README updates for 1.0 (#2258)
manciniedoardo Nov 30, 2023
78c8331
[skip actions] Bump version to 0.12.3.9022
bms63 Nov 30, 2023
b83d1ee
Closes #2260 Update test for `derive_var_obs_number` (#2267)
ynsec37 Dec 1, 2023
f4a26ed
[skip actions] Bump version to 0.12.3.9023
bms63 Dec 1, 2023
0c044ca
Workflow dispatch templates (#2269)
dgrassellyb Dec 1, 2023
26aee0e
[skip actions] Bump version to 0.12.3.9024
bms63 Dec 1, 2023
3d14041
Closes #2220 rehab reference page (#2272)
bms63 Dec 1, 2023
0921f16
[skip actions] Bump version to 0.12.3.9025
bms63 Dec 1, 2023
158eb67
Closes #2137 unify by_vars argument description (#2250)
StefanThoma Dec 1, 2023
77b4eb4
[skip actions] Bump version to 0.12.3.9026
bms63 Dec 1, 2023
0acb477
Closes #2238: clarify dates values in flag_imputation argument of der…
PoojaKumari05 Dec 4, 2023
bd8eef3
Closes #2264 Lighten assertion of `TERMNUM` and `TERMCHAR` depending …
zdz2101 Dec 4, 2023
b88d51a
Closes #2255 add uppercase spellings of in_unit/out_unit (#2261)
zdz2101 Dec 4, 2023
8787316
[skip actions] Bump version to 0.12.3.9027
zdz2101 Dec 4, 2023
0cdf0d1
Closes #2275 Cheatsheet Enhancements (#2276)
manciniedoardo Dec 4, 2023
95422c9
[skip actions] Bump version to 0.12.3.9028
bms63 Dec 4, 2023
45c4559
Closes #2277 review of site (#2278)
bms63 Dec 4, 2023
2d8e3a6
[skip actions] Bump version to 0.12.3.9029
bms63 Dec 4, 2023
e4ac701
Pause CRAN Status Checks (#2279)
cicdguy Dec 5, 2023
6096133
[skip actions] Bump version to 0.12.3.9030
bms63 Dec 5, 2023
e52da9e
Closes #2264 add tests based on feedback to properly lighten the quer…
zdz2101 Dec 6, 2023
ca6ee79
[skip actions] Bump version to 0.12.3.9031
zdz2101 Dec 6, 2023
78429d5
Closes #2138 remove by_vars default (#2281)
jeffreyad Dec 6, 2023
305d412
[skip actions] Bump version to 0.12.3.9032
bms63 Dec 6, 2023
64b4fce
2284 fix grade in DAIDS (#2285)
millerg23 Dec 7, 2023
e2f0d34
[skip actions] Bump version to 0.12.3.9033
manciniedoardo Dec 7, 2023
35a945a
Closes #2284 add issue number to NEWS (#2287)
millerg23 Dec 7, 2023
f64e391
[skip actions] Bump version to 0.12.3.9034
bms63 Dec 7, 2023
d4bcb5e
Closes #2255 time units duration functions add back backwards-compati…
zdz2101 Dec 7, 2023
dcaac2d
[skip actions] Bump version to 0.12.3.9035
zdz2101 Dec 7, 2023
6d1a303
Closes #2282: fix mistake in changelog (#2283)
manciniedoardo Dec 7, 2023
e2974c8
[skip actions] Bump version to 0.12.3.9036
bms63 Dec 7, 2023
b8a9e4b
Closes #2289 fix_derive_vars_joined: remove by_vars from new_vars (#2…
bundfussr Dec 8, 2023
b1a99ac
[skip actions] Bump version to 0.12.3.9037
bms63 Dec 8, 2023
e92aae2
Closes #2291 fix_derive_extreme_event: do not ignore condition (#2292)
bundfussr Dec 8, 2023
d2eedc3
[skip actions] Bump version to 0.12.3.9038
bms63 Dec 8, 2023
ff03c97
[skip vbump] 1.0 release (#2293)
bms63 Dec 11, 2023
37c4dca
[skip vbump] Release v1.0 (CRAN Feedback) (#2294)
bms63 Dec 11, 2023
6cc9530
merge conflict
zdz2101 Jan 31, 2024
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
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@
^staged_dependencies.yaml$
^inst/dev_dependencies.R$
^\.devcontainer$
^vignettes/articles$
^inst/cheatsheet$
98 changes: 81 additions & 17 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,98 @@
# Contribution to {admiral}

This outlines how to propose a change to the admiral package. For more detailed info about contributing to {admiral}, and other [pharmaverse packages](https://pharmaverse.org/), please see the [development process guide](https://pharmaverse.github.io/admiraldev/main/articles/development_process.html) as well as other Developer Guides in the Articles section of the [{admiral} website](https://pharmaverse.github.io/admiral/cran-release/index.html)
This outlines how to propose a change to the admiral package. For more detailed info about contributing to {admiral}, and other [pharmaverse packages](https://pharmaverse.org/), please see the [Contribution Guide](https://pharmaverse.github.io/admiral/CONTRIBUTING.html) as well as other Developer Guides in the Articles section of the [{admiraldev} website](https://pharmaverse.github.io/admiraldev/).

# Basics
* For each new contribution, the user creates an issue on the issue tab on [GitHub](https://github.com/pharmaverse/admiral/issues) to put it in our backlog. The issues can range from bug identification and/or fixes, enhancements to functions, documentation, tests or new features.
Please note that we try to align to best practices used in other R packages' development processes - so veteran developers should be familiar with our processes. However, we do deviate slightly from some best practices and we advise all new contributors to review our package documentation accordingly.

* We advise you to contact us when an [issue](https://github.com/pharmaverse/admiral/issues) is created via [Slack](https://app.slack.com/client/T028PB489D3/C02M8KN8269) (If you don't have access, use this [link](https://join.slack.com/t/pharmaverse/shared_invite/zt-yv5atkr4-Np2ytJ6W_QKz_4Olo7Jo9A) to join). We can discuss details or align expectations if you are not familiar with the `{admiral}` philosophy and programming strategy. The team will try to review the issues within the next backlog meeting and give some initial feedback. Since we are not a 100% fully resourced software development team it might be that some issues will take longer to respond to depending on the amount of overall issues.

* Familiarize yourself with our [programming strategy](https://pharmaverse.github.io/admiraldev/main/articles/programming_strategy.html), guidance for [GitHub usage](https://pharmaverse.github.io/admiraldev/main/articles/git_usage.html) and [unit testing](https://pharmaverse.github.io/admiraldev/main/articles/unit_test_guidance.html).
# Basics of Contribution
🦋 For each new contribution, the user creates an issue on the issue tab on [GitHub](https://github.com/pharmaverse/admiral/issues) to put it in our backlog. The issues can range from bug identification and/or fixes, enhancements to functions, documentation, tests or new features.

* All newly [created issues](https://github.com/pharmaverse/admiral/issues) will be reviewed within the next backlog meeting and the creator will receive an initial feedback via a comment. Someone from the core development team will then triage new issues by assigning the appropriate labels (such as “user request” so we can easily identify new requests).
🦋 We advise you to contact us when an [issue](https://github.com/pharmaverse/admiral/issues) is created via [Slack](https://app.slack.com/client/T028PB489D3/C02M8KN8269) (If you don't have access, use this [link](https://join.slack.com/t/pharmaverse/shared_invite/zt-yv5atkr4-Np2ytJ6W_QKz_4Olo7Jo9A) to join). We can discuss details or align expectations if you are not familiar with the `{admiral}` philosophy and programming strategy. The team will try to review the issues within the next backlog meeting and give some initial feedback. Since we are not a 100% fully resourced software development team it might be that some issues will take longer to respond to depending on the amount of overall issues.

🦋 We advise you to familiarize yourself with our [programming strategy](https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html), guidance for [GitHub usage](https://pharmaverse.github.io/admiraldev/articles/git_usage.html) and [unit testing](https://pharmaverse.github.io/admiraldev/articles/unit_test_guidance.html).

🦋 All newly [created issues](https://github.com/pharmaverse/admiral/issues) will be reviewed within the next backlog meeting and the creator will receive an initial feedback via a comment. Someone from the core development team will then triage new issues by assigning the appropriate labels (such as “user request” so we can easily identify new requests).

* Issues are meant to be taken on by users from the Pharma programming community and not exclusively by the `{admiral}` team from GSK and Roche.
🦋 Issues are meant to be taken on by users from the Pharma programming community and not exclusively by the `{admiral}` team from GSK and Roche.

# Contribution Model

## Type 1: Contribution without Code

## Type 1 Contribution with Code:

* First, the user creates an issue or comments on an existing issue to notify that they’d like to contribute code.
* Follow our development process step-by-step guide.
* We advise to contact an `{admiral}` core development team directly via [Slack](https://app.slack.com/client/T028PB489D3/C02M8KN8269) before submitting code for complex functionality.
🦋 User creates an issue and ideally contacts an `{admiral}` team member via [Slack](https://app.slack.com/client/T028PB489D3/C02M8KN8269).

🦋 The `{admiral}` core development team will contact the issue creator as soon as possible to discuss further details.


## Type 2: Contribution with Code

## Type 2 Contribution without Code:
🦋 First, the user creates an issue or comments on an existing issue to notify that they’d like to contribute code.

🦋 Follow our development process step-by-step guide.

🦋 We advise to contact an `{admiral}` core development team directly via [Slack](https://app.slack.com/client/T028PB489D3/C02M8KN8269) before submitting code for complex functionality.

* User creates an issue and ideally contacts an `{admiral}` team member via [Slack](https://app.slack.com/client/T028PB489D3/C02M8KN8269).
* The `{admiral}` core development team will contact the issue creator as soon as possible to discuss further details.
## Detailed Development Process

If you decide to contribute with code and you're ready to make your first code contribution, this detailed development process step-by-step guide will help tie all the other detailed vignettes together to give you the simplest experience of helping to grow and enhance our codebase.

See [Contribution to {admiral}](https://pharmaverse.github.io/admiral/cran-release/articles/contribution_model.html) for additional details.

1. Create a new feature branch from the development branch `main`
following the naming convention and pull the latest changes - as
detailed on the [GitHub
usage](https://pharmaverse.github.io/admiraldev/articles/git_usage.html#working-with-feature-branches-1) guide.
2. Familiarize yourself with the `{admiral}` [programming
strategy](https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html), and then make the required
code updates.
3. Before making a pull request, check the [Pull Request Review
Guidance](https://pharmaverse.github.io/admiraldev/articles/pr_review_guidance.html) & the following checklist of
common things developers miss:
a. Is all your code formatted according to the
[tidyverse](https://style.tidyverse.org/) style guide?
b. Did you create/add appropriate [unit
tests](https://pharmaverse.github.io/admiraldev/articles/unit_test_guidance.html#writing-unit-tests-in-admiral)?
c. If you removed/replaced any function and/or function parameters,
did you fully follow the [deprecation
guidance](https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html#deprecation)?
d. Did you update the
[documentation]https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html#function-header-documentation)?
If so, remember to run `devtools::document()` and include the
updated `NAMESPACE` and `.Rd` files in `man/`.
e. Does your code update have any impact on the [ADaM
template](https://pharmaverse.github.io/admiral/articles/admiral.html#starting-a-script)
R scripts stored in `inst/templates`?
f. Does your code update have any impact on the vignettes stored in
vignettes?
g. Did you update the Changelog `NEWS.md`?
h. Did you build `{admiral}` site `pkgdown::build_site()` and check
that all affected examples are displayed correctly and that all
new functions occur on the
"[Reference](https://pharmaverse.github.io/admiral/reference/)" page?
4. Once happy with all the updates, make a [pull
request](https://pharmaverse.github.io/admiraldev/articles/git_usage.html#pull-request) to merge to the `main` branch
and link the issue so that it closes after successful merging.
5. Check that there are no merge conflicts. If there are any, fix them
before requesting review. See [solving merge
conflicts](https://pharmaverse.github.io/admiraldev/articles/git_usage.html#solving-merge-conflicts-in-the-terminal-on-rstudio)
guidance.
6. Check the results of the automated `R-CMD check` and `lintr` checks
and if any issues consult this
[guide](https://pharmaverse.github.io/admiraldev/articles/pr_review_guidance.html#common-r-cmd-check-issues).
7. Assign a reviewer from the `{admiral}` core development team - this
could be anyone you discussed the issue with previously via Slack or
GitHub. If unsure, add a comment that the pull request is ready for
review and add the `@pharmaverse/admiral` tag to it.
8. Once the review is completed, the reviewer will merge the PR and
this will then automatically delete the feature branch.

Finally, just a note to say from the core developers that we hugely
appreciate you taking the time to contribute to `{admiral}`. Don't be
offended if during review we send requests back to you, as the
expectations are high so that we can ensure the `{admiral}` codebase
remains robust and consistent. The best way to learn here is always to
jump in and get involved, so please don't be afraid you'll make mistakes
along the way -- we all have and continue to do so, and that's what the
reviews are for. Also if ever you get stuck don't hesitate to reach out
for support via the [Slack
channel](https://app.slack.com/client/T028PB489D3/C02M8KN8269).
***Welcome to our `{admiral}` community!***
11 changes: 6 additions & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
Thank you for your Pull Request! We have developed this task checklist from the [Development Process Guide](https://pharmaverse.github.io/admiraldev/devel/articles/development_process.html) to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Thank you for your Pull Request! We have developed this task checklist from the [Development Process Guide](https://pharmaverse.github.io/admiral/CONTRIBUTING.html) to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.

Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the `devel` branch until you have checked off each task.

- [ ] Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
- [ ] Code is formatted according to the [tidyverse style guide](https://style.tidyverse.org/). Run `styler::style_file()` to style R and Rmd files
- [ ] Updated relevant unit tests or have written new unit tests, which should consider realistic data scenarios and edge cases, e.g. empty datasets, errors, boundary cases etc. - See [Unit Test Guide](https://pharmaverse.github.io/admiraldev/devel/articles/unit_test_guidance.html#tests-should-be-robust-to-cover-realistic-data-scenarios)
- [ ] If you removed/replaced any function and/or function parameters, did you fully follow the [deprecation guidance](https://pharmaverse.github.io/admiraldev/devel/articles/programming_strategy.html#deprecation)?
- [ ] Update to all relevant roxygen headers and examples, including keywords and families. Refer to the [categorization of functions](https://pharmaverse.github.io/admiraldev/devel/articles/programming_strategy.html#categorization-of-functions) to tag appropriate keyword/family.
- [ ] Updated relevant unit tests or have written new unit tests, which should consider realistic data scenarios and edge cases, e.g. empty datasets, errors, boundary cases etc. - See [Unit Test Guide](https://pharmaverse.github.io/admiraldev/articles/unit_test_guidance.html#tests-should-be-robust-to-cover-realistic-data-scenarios)
- [ ] If you removed/replaced any function and/or function parameters, did you fully follow the [deprecation guidance](https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html#deprecation)?
- [ ] Review the [Cheat Sheet](https://github.com/pharmaverse/admiral/blob/main/inst/cheatsheet/admiral_cheatsheet.pdf). Make any required updates to it by editing the file `inst/cheatsheet/admiral_cheatsheet.pptx` and re-upload a PDF version of it to the same folder.
- [ ] Update to all relevant roxygen headers and examples, including keywords and families. Refer to the [categorization of functions](https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html#categorization-of-functions) to tag appropriate keyword/family.
- [ ] Run `devtools::document()` so all `.Rd` files in the `man` folder and the `NAMESPACE` file in the project root are updated appropriately
- [ ] Address any updates needed for vignettes and/or templates
- [ ] Update `NEWS.md` under the header `# admiral (development version)` if the changes pertain to a user-facing function (i.e. it has an `@export` tag) or documentation aimed at users (rather than developers)
- [ ] Build admiral site `pkgdown::build_site()` and check that all affected examples are displayed correctly and that all new functions occur on the "[Reference](https://pharmaverse.github.io/admiral/cran-release/reference/index.html)" page.
- [ ] Build admiral site `pkgdown::build_site()` and check that all affected examples are displayed correctly and that all new functions occur on the "[Reference](https://pharmaverse.github.io/admiral/reference/index.html)" page.
- [ ] Address or fix all lintr warnings and errors - `lintr::lint_package()`
- [ ] Run `R CMD check` locally and address all errors and warnings - `devtools::check()`
- [ ] Link the issue in the Development Section on the right hand side.
Expand Down
62 changes: 46 additions & 16 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,48 @@ concurrency:
group: admiral-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
R_VERSION: "4.1"

jobs:
get_r_version:
name: Get R version
runs-on: ubuntu-latest
outputs:
r-version: ${{ steps.get_r_version.outputs.R_VERSION }}
steps:
- name: Get R Version for Downstream Container Jobs
id: get_r_version
run: echo "R_VERSION=$R_VERSION" >> $GITHUB_OUTPUT
shell: bash
style:
name: Code Style
uses: pharmaverse/admiralci/.github/workflows/style.yml@main
if: github.event_name == 'pull_request'
needs: get_r_version
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
spellcheck:
name: Spelling
uses: pharmaverse/admiralci/.github/workflows/spellcheck.yml@main
if: github.event_name == 'pull_request'
needs: get_r_version
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
readme:
name: Render README
uses: pharmaverse/admiralci/.github/workflows/readme-render.yml@main
if: github.event_name == 'push'
needs: get_r_version
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
validation:
name: Validation
uses: pharmaverse/admiralci/.github/workflows/r-pkg-validation.yml@main
if: github.event_name == 'release'
needs: get_r_version
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
check:
name: Check
uses: pharmaverse/admiralci/.github/workflows/r-cmd-check.yml@main
Expand All @@ -68,22 +85,19 @@ jobs:
name: Documentation
uses: pharmaverse/admiralci/.github/workflows/pkgdown.yml@main
if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/v')
needs: get_r_version
with:
r-version: "4.1"
# Whether to skip multiversion docs
# Note that if you have multiple versions of docs,
# your URL links are likely to break due to path changes
skip-multiversion-docs: false
latest-tag-alt-name: cran-release
multiversion-docs-landing-page: cran-release
branches-or-tags-to-list: >-
^cran-release$|^v([0-9]+\\.)?([0-9]+\\.)?([0-9]+)$
r-version: "4.3"
skip-multiversion-docs: true
secrets:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
linter:
name: Lint
uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main
needs: get_r_version
if: github.event_name == 'pull_request'
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
links:
name: Links
uses: pharmaverse/admiralci/.github/workflows/links.yml@main
Expand All @@ -93,8 +107,9 @@ jobs:
uses: pharmaverse/admiralci/.github/workflows/code-coverage.yml@main
if: >
github.event_name != 'release'
needs: get_r_version
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
# Whether to skip code coverage badge creation
# Setting to 'false' will require you to create
# an orphan branch called 'badges' in your repository
Expand All @@ -103,5 +118,20 @@ jobs:
name: Man Pages
uses: pharmaverse/admiralci/.github/workflows/man-pages.yml@main
if: github.event_name == 'pull_request'
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
templates:
name: Check Templates
uses: pharmaverse/admiralci/.github/workflows/check-templates.yml@main
secrets: inherit
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: get_r_version
with:
r-version: "4.1"
r-version: "${{ needs.get_r_version.outputs.r-version }}"
vbump:
name: Version Bump 🤜🤛
if: github.event_name == 'push'
uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.PHARMAVERSE_BOT }}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
# Whom should the issue be assigned to if errors are encountered
# in the CRAN status checks?
issue-assignees: "bundfussr,esimms999-gsk,manciniedoardo,bms63"
issue-assignees: "bundfussr,zdz2101,manciniedoardo,bms63"
# Create an issue if one or more of the following
# statuses are reported on the check report.
statuses: "WARN,ERROR,NOTE"
Expand Down
1 change: 1 addition & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ https://github.com/pharmaverse/admiral/blob/main/
https://github.com/pharmaverse/admiral/blob/main/inst/templates/ad_adxx.R
irongut/[email protected]
https://packagemanager.rstudio.com/cran/__linux__/focal/latest
https://raw.githubusercontent.com/pharmaverse/admiral/main/inst/cheatsheet/cheatsheet_image.png
Loading
Loading