Skip to content

Commit

Permalink
Git commit for issue #237
Browse files Browse the repository at this point in the history
  • Loading branch information
MATSUNAGA committed Oct 8, 2024
1 parent 17cf787 commit cde2a12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# admiralophtha 1.2.0.

## Updates to Functions

- The following function arguments of `derive_var_afeye()` are removed (#237):

* The argument `dataset_occ`
* The argument `lat_vals`

# admiralophtha 1.1.0.9002

## Updates to Functions
Expand Down
22 changes: 1 addition & 21 deletions R/derive_var_afeye.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,9 @@
#' )
#'
#' derive_var_afeye(adae2, loc_var = AELOC, lat_var = AELAT, loc_vals = c("EYES", "RETINA"))
derive_var_afeye <- function(dataset, dataset_occ, loc_var, lat_var, lat_vals, loc_vals = "EYE") {
# BEGIN DEPRECATION
if (!missing(lat_vals)) {
deprecate_stop(
"1.1.0",
"derive_var_afeye(lat_vals = )",
details = "Please ensure your laterality values are from the
set `c('LEFT', 'RIGHT', 'BILATERAL')`"
)
}

if (!missing(dataset_occ)) {
deprecate_stop(
"1.1.0",
"derive_var_afeye(dataset_occ = )",
"derive_var_afeye(dataset = )"
)
}

# END DEPRECATION

derive_var_afeye <- function(dataset, loc_var, lat_var, loc_vals = "EYE") {
seye_vals <- c("LEFT", "RIGHT", "BILATERAL")
lat_vals <- c("LEFT", "RIGHT", "BILATERAL")

loc_var <- assert_symbol(enexpr(loc_var))
lat_var <- assert_symbol(enexpr(lat_var))
Expand Down

0 comments on commit cde2a12

Please sign in to comment.