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 unit test to ensure changes to adam fn only invalidate targets that use those functions #37

Merged
merged 4 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: chef
Title: Framework for generating statistical evidence
Version: 0.1.0
Version: 0.1.1
Authors@R: c(
person("MEWP (Matthew David Phelps)", , , "mewp@novonordisk.com", role = "aut"),
person("NOSJ (Nicolai Skov Johnsen)", , , "nosj@novonordisk.com", role = "aut"),
Expand Down Expand Up @@ -28,7 +28,6 @@ Imports:
usethis,
purrr,
stats,
crew
Suggests:
covr,
fs,
Expand All @@ -54,4 +53,6 @@ Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
URL: https://hta-pharma.github.io/chef/
URL:
https://hta-pharma.github.io/chef/,
https://github.com/hta-pharma/chef
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# chef 0.1.1

# chef 0.1.0

* Initial release.
4 changes: 2 additions & 2 deletions R/fetch_db_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ fetch_db_data <-

adam <- fn_dt[fn_type == "data_prepare"]
adam[, c("dat", "error_flag", "error_msg") := eval_data_fn(
study_metadata = study_metadata,
fn = fn_callable
fn_list = fn_callable,
study_metadata = study_metadata
),
by =
seq_len(nrow(adam))
Expand Down
18 changes: 18 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
url: https://hta-pharma.github.io/chef/
template:
bootstrap: 5
bootswatch: flatly

home:
links:
- text: HTA-R openstatsware workstream
href: https://www.openstatsware.org/hta_page.html
- text: ramnog
href: https://hta-pharma.github.io/ramnog/
- text: chefStats
href: https://hta-pharma.github.io/chefStats/
- text: chefCriteria
href: https://hta-pharma.github.io/chefCriteria


navbar:
structure:
left: [reference, news]
right: [github]
1 change: 0 additions & 1 deletion inst/templates/packages_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ library(targets)
library(tarchetypes)
library(magrittr)
library(data.table)
library(crew)
8 changes: 8 additions & 0 deletions pkgdown/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.dropdown-header {
font-size: 1.2rem;
color: #494646;
font-weight: 700;
}
.text-muted {
color: #8f9c9d !important;
}
Loading