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

Add staged_dependencies for admiraldev #26

Merged
merged 10 commits into from
Nov 20, 2023

Conversation

galachad
Copy link
Member

@galachad galachad commented Nov 20, 2023

Add staged_dependencies, fix links as it should use latest admiraldev package.

Close #23

@galachad galachad changed the base branch from 0010_calculate_isodate to main November 20, 2023 10:33
Copy link

github-actions bot commented Nov 20, 2023

Code Coverage

Package Line Rate Health
sdtm.oak 88%
Summary 88% (213 / 243)

@galachad galachad changed the base branch from main to 0010_calculate_isodate November 20, 2023 13:43
@galachad
Copy link
Member Author

Hi @ramiromagno, this is PR to your branch, please merge after review as it solve some CI/CD issues that you reported.

@galachad galachad requested a review from ramiromagno November 20, 2023 13:53
Copy link
Collaborator

@ramiromagno ramiromagno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great Adam! Thank you.

@ramiromagno ramiromagno merged commit 2079aa7 into 0010_calculate_isodate Nov 20, 2023
1 check passed
@ramiromagno ramiromagno deleted the 0010_calculate_isodate_fix_links branch November 20, 2023 17:48
galachad added a commit that referenced this pull request Nov 29, 2023
* clean up dummy test

* add `dtc_formats` data set

* update .Rbuildignore

* add tibble support for automatic pretty printing of tibbles

* add `create_iso8601()` (closes #10)

* clean up `lintr::lint_package()` issues

* Automatic renv profile update.

* Automatic renv profile update.

* Fix typos in R/dtc_utils.R

Co-authored-by: edgar-manukyan <[email protected]>

* remove `dummy()` function

* remove `.onLoad()` function

This function was likely added as part of an automatic setup of the R package as a whole but I guess we should add the `.onLoad()` if really needed.

* Remove the `is_dtc_fmt()` function

Initially I thought of calling this function from within `assert_dtc_fmt()` but I think now that the current usage of `rlang::arg_match()` leads to more concise code, so this is preferred.

* Import `.data` from rlang globally

Import `.data` from rlang globally by using the R package level documentation (https://roxygen2.r-lib.org/articles/rd-other.html?q=_PACKAGE#packages).

* Update WORDLIST

* Update `assert_capture_matrix()` and `complete_capture_matrix()` docs

* Add `coalesce_capture_matrices()` doc

* Fix typo in `assert_dtc_fmt()` doc

* Add `regex_or()` doc

* Add `fmt_rg()` doc

* Add `fmt_c()` doc

* Add `parse_dttm_fmt()` doc

* Fix doc of `parse_dttm_fmt()`

* Add `dttm_fmt_to_regex()` doc

* Bump development version to 0.0.0.9001

* Style updates

Style updates on R/dtc_create_iso8601.R, R/dtc_parse_dttm.R, R/dtc_utils.R. Mostly indentation corrections, wrapping single line body if-conditions in braces, white space removal.

* Style update to tests/testthat/test-yy_to_yyyy.R

* Style update

Style updates on tests/testthat/test-iso8601.R and tests/testthat/test-reg_matches.R

* Blank lines removal

* Style update

* Update docs after style update

* Refactor code about parsing dttm formats

Made `dttm_fmt_to_regex()` interface more intitutive by accepting directly the argument `fmt` instead of `tbl_fmt_c` which was an intermediate R object returned by `parse_dttm_fmt()`. Also, introduced unit tests for `parse_dttm_fmt_()`.

* Make `parse_dttm_fmt()` handle the case of no matching format components

* Use `fmt_dttmc()` in unit tests

* Small clarification on unit test description

* Remove futile assertion from `assert_dtc_fmt()`

* Add staged_dependencies for admiraldev (#26)

* Add staged_dependencies for admiraldev

* Add new line

* Fix admiraldev links.

* Fix admiraldev articles links.

* Remove R 4.1 a it causing dependencies issues. We want to use purrr >= 1.0.0

* Test latest lintr

* Test lintr with install package locally

* Add install pacakge variable for lintr

* Skip multi version pkgdown workflow.

* R build ignore staged_dependencies.yaml

* Automatic renv profile update.

* Automatic renv profile update.

* Cleaned up lintr issues

* Export `fmt_cmp()` and add early draft of `create_iso8601()` article

* Update `create_iso8601()` article

* Link `create_iso8601()` doc to article "iso_8601"

* Add RM as author to DESCRIPTION

* Fix author role of RM

* Fix indentation at `fmt_cmp()` source

* Remove `.check_format` from examples and add an example with `fmt_cmp()`

* Add an example to `create_iso8601()` with involving alternative formats and unk values

* Add example to `create_iso8601()` about the interplay of `.format` and `.fmt_c`

* Update common.yml

* Update style

* Change "oak" to "sdtm.oak" in DESCRIPTION

* Change "oak" to "sdtm.oak" in README

---------

Co-authored-by: ramiromagno <[email protected]>
Co-authored-by: edgar-manukyan <[email protected]>
Co-authored-by: Adam Foryś <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants