Skip to content

Commit

Permalink
52 standardise optional notation (#302)
Browse files Browse the repository at this point in the history
part of insightsengineering/nestdevs-tasks#52

---------

Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Marcin <[email protected]>
Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 14, 2024
1 parent 0247047 commit baf8b94
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
9 changes: 4 additions & 5 deletions R/cdisc_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
#' for given datasets whose names match ADAM datasets names.
#'
#' @inheritParams teal_data
#' @param join_keys (`join_keys`) object or a single (`join_key_set`) object
#'
#' (optional) object with datasets column names used for joining.
#' If empty then it would be automatically derived basing on intersection of datasets primary keys.
#' For ADAM datasets it would be automatically derived.
#' @param join_keys (`join_keys` or single `join_key_set`)
#' optional object with datasets column names used for joining.
#' If empty then it would be automatically derived basing on intersection of datasets primary keys.
#' For ADAM datasets it would be automatically derived.
#'
#' @return A `teal_data` object.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/join_keys.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' - `join_keys(teal_data)`: Returns the `join_keys` object contained in `teal_data` object.
#' - `join_keys(...)`: Creates a new object with one or more `join_key_set` parameters.
#'
#' @param ... (optional)
#' @param ... optional,
#' - either `teal_data` or `join_keys` object to extract `join_keys`
#' - or any number of `join_key_set` objects to create `join_keys`
#' - or nothing to create an empty `join_keys`
Expand Down
7 changes: 3 additions & 4 deletions R/teal_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
#'
#' @param ... any number of objects (presumably data objects) provided as `name = value` pairs.
#'
#' @param join_keys (`join_keys`) object or a single (`join_key_set`) object.
#'
#' (optional) object with dataset column relationships used for joining.
#' If empty then no joins between pairs of objects.
#' @param join_keys (`join_keys` or single `join_key_set`)
#' optional object with datasets column names used for joining.
#' If empty then no joins between pairs of objects.
#'
#' @param code (`character`, `language`) optional code to reproduce the datasets provided in `...`.
#' Note this code is not executed and the `teal_data` may not be reproducible
Expand Down
5 changes: 2 additions & 3 deletions man/cdisc_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/join_keys.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/teal_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit baf8b94

Please sign in to comment.