Skip to content

Commit

Permalink
Add unit test to ensure changes to adam fn only invalidate targets th…
Browse files Browse the repository at this point in the history
…at use those functions (#37)

* Add unit test to ensure changes to adam fn only invalidate targets that use those functions

* Fix rmd check and remove crew from used packags. This is because we have not enable parallel 'out-of-the-box'. Users can still enable parallel

* Increment version number to 0.1.1
  • Loading branch information
matthew-phelps committed Apr 17, 2024
1 parent 94b2b8e commit 091d5a1
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 134 deletions.
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

0 comments on commit 091d5a1

Please sign in to comment.