Skip to content

Commit

Permalink
#203 merged main into branch to fix errors
Browse files Browse the repository at this point in the history
Merge branch 'main' into 203_links_crancomments

# Conflicts:
#	DESCRIPTION
#	NEWS.md
  • Loading branch information
manciniedoardo committed Oct 25, 2023
2 parents 276a97a + 1270f40 commit 4d5c8e3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ on:
push:
branches:
- main
- devel
- pre-release
- test
# 'pull_request' events are triggered when PRs are
# created against one of these target branches.
pull_request:
branches:
- main
- devel
- pre-release
- test
# 'release' events are triggered when...
Expand Down Expand Up @@ -64,6 +62,8 @@ jobs:
name: Check
uses: pharmaverse/admiralci/.github/workflows/r-cmd-check.yml@main
if: github.event_name == 'pull_request'
with:
error-on: warning # TODO: find a way to ignore specific notes
docs:
name: Documentation
uses: pharmaverse/admiralci/.github/workflows/pkgdown.yml@main
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# admiralophtha (development version)

## Updates to Templates

- Removed `analysis_value` argument in the calls to `derive_param_computed()` in ADBCVA template in line with the deprecation of this argument in the new version of `{admiral}`. Variable values for parameters of interest are now all populated through the `set_values_to` argument (#207).

## Updates to Documentation

- Added release date for `{admiralophtha}` 1.0 to the front page (#203).
- Removed `analysis_value` argument in the calls to `derive_param_computed()` in ADBCVA vignette in line with the deprecation of this argument in the new version of `{admiral}`. Variable values for parameters of interest are now all populated through the `set_values_to` argument (#207).

# admiralophtha 0.3.0

Expand Down
4 changes: 2 additions & 2 deletions inst/templates/ad_adbcva.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ adbcva_logparam <- adbcva_nlogparam %>%
derive_param_computed(
by_vars = c(exprs(STUDYID, USUBJID, VISIT, VISITNUM, OEDY, OEDTC, AFEYE), adsl_vars),
parameters = c("SBCVA"),
analysis_value = convert_etdrs_to_logmar(AVAL.SBCVA),
set_values_to = exprs(
AVAL = convert_etdrs_to_logmar(AVAL.SBCVA),
PARAMCD = "SBCVALOG",
PARAM = "Study Eye Visual Acuity LogMAR Score",
DTYPE = NA_character_,
Expand All @@ -150,8 +150,8 @@ adbcva_logparam <- adbcva_nlogparam %>%
derive_param_computed(
by_vars = c(exprs(STUDYID, USUBJID, VISIT, OEDY, OEDTC, AFEYE), adsl_vars),
parameters = c("FBCVA"),
analysis_value = convert_etdrs_to_logmar(AVAL.FBCVA),
set_values_to = exprs(
AVAL = convert_etdrs_to_logmar(AVAL.FBCVA),
PARAMCD = "FBCVALOG",
PARAM = "Fellow Eye Visual Acuity LogMAR Score",
DTYPE = NA_character_,
Expand Down
12 changes: 6 additions & 6 deletions vignettes/adbcva.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -150,24 +150,24 @@ Often ADBCVA datasets contain derived records for BCVA in LogMAR units. This can
```{r}
adbcva <- adbcva %>%
derive_param_computed(
by_vars = c(exprs(STUDYID, USUBJID, VISIT, VISITNUM, OEDY, OEDTC), adsl_vars),
by_vars = c(exprs(STUDYID, USUBJID, VISIT, VISITNUM, OEDY, OEDTC, AFEYE), adsl_vars),
parameters = c("SBCVA"),
analysis_value = convert_etdrs_to_logmar(AVAL.SBCVA),
set_values_to = exprs(
AVAL = convert_etdrs_to_logmar(AVAL.SBCVA),
PARAMCD = "SBCVALOG",
PARAM = "Study Eye Visual Acuity LogMAR Score",
DTYPE = "DERIVED",
DTYPE = NA_character_,
AVALU = "LogMAR"
)
) %>%
derive_param_computed(
by_vars = c(exprs(STUDYID, USUBJID, VISIT, OEDY, OEDTC), adsl_vars),
by_vars = c(exprs(STUDYID, USUBJID, VISIT, OEDY, OEDTC, AFEYE), adsl_vars),
parameters = c("FBCVA"),
analysis_value = convert_etdrs_to_logmar(AVAL.FBCVA),
set_values_to = exprs(
AVAL = convert_etdrs_to_logmar(AVAL.FBCVA),
PARAMCD = "FBCVALOG",
PARAM = "Fellow Eye Visual Acuity LogMAR Score",
DTYPE = "DERIVED",
DTYPE = NA_character_,
AVALU = "LogMAR"
)
) %>%
Expand Down

0 comments on commit 4d5c8e3

Please sign in to comment.