-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2682dfa
commit 573fccf
Showing
24 changed files
with
140 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ Description: Modules from the readyforwhatsnext youth mental health | |
package has been made available as part of the process of testing and | ||
documenting the package. If you have any questions, please contact | ||
the authors ([email protected]). | ||
License: GPL-3 + file LICENSE | ||
License: GPL-3 | ||
URL: https://ready4-dev.github.io/TTU/, https://github.com/ready4-dev/TTU, | ||
https://ready4-dev.github.io/ready4/ | ||
Encoding: UTF-8 | ||
|
@@ -30,8 +30,10 @@ Suggests: | |
caret, | ||
knitr, | ||
knitrBootstrap, | ||
pkgload, | ||
rmarkdown, | ||
testthat | ||
testthat, | ||
youthvars (>= 0.0.0.9125) | ||
VignetteBuilder: knitr | ||
Imports: | ||
dplyr, | ||
|
@@ -50,7 +52,8 @@ Imports: | |
utils | ||
Depends: | ||
R (>= 2.10), | ||
specific | ||
scorz (>= 0.0.0.9065), | ||
specific (>= 0.0.0.9108) | ||
LazyData: true | ||
Collate: | ||
'C4_TTUSynopsis.R' | ||
|
@@ -75,4 +78,6 @@ Collate: | |
Remotes: | ||
ready4-dev/ready4show, | ||
ready4-dev/ready4use, | ||
ready4-dev/specific | ||
ready4-dev/specific, | ||
ready4-dev/youthvars, | ||
ready4-dev/scorz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,51 @@ | ||
#' Pipe operator | ||
#' | ||
#' Implements: https://github.com/sckott/analogsea/issues/32 | ||
#' and https://github.com/rstudio/ggvis/blob/master/R/pipe.R. | ||
#' Import of [magrittr::%>%()]. See magrittr package documentation for detailed description. | ||
#' | ||
#' @importFrom magrittr %>% | ||
#' @name %>% | ||
#' @rdname pipe | ||
#' @export | ||
#' @param lhs,rhs An object and a function to apply to it | ||
#' @keywords internal | ||
#' @returns The type of return from this function depends on the left hand side and right hand side arguments supplied to it. In principle, any type of returned object is feasible. | ||
#' @seealso [magrittr::%>%()] | ||
NULL | ||
|
||
#' Deprecated function | ||
#' | ||
#' Import of deprecated function as recommended in lifecycle package documentation. | ||
#' Import of [lifecycle::deprecated()]. See lifecycle package documentation for detailed description. | ||
#' | ||
#' @importFrom lifecycle deprecated | ||
#' @name deprecated | ||
#' @rdname deprecated | ||
#' @export | ||
#' @keywords internal | ||
#' @returns Does not return a value as the function is used to signal that a function argument has been deprecated. | ||
#' @seealso [lifecycle::deprecated()] | ||
NULL | ||
|
||
#' Non standard evaluation assignment function | ||
#' | ||
#' Import of := function, implementing [rlang::dyn-dots()]. See rlang package documentation for detailed description. | ||
#' | ||
#' @importFrom rlang := | ||
#' @name := | ||
#' @rdname nseequals | ||
#' @export | ||
#' @keywords internal | ||
#' @returns Does not return a value. Used to implement non standard evaluation within a dynamic dots context. | ||
#' @seealso [rlang::dyn-dots()] | ||
NULL | ||
|
||
#' Dot Data function | ||
#' | ||
#' Import of [rlang::.data()]. See rlang package documentation for detailed description. | ||
#' | ||
#' @importFrom rlang .data | ||
#' @name .data | ||
#' @rdname dotdata | ||
#' @export | ||
#' @keywords internal | ||
#' @returns Does not return a value. A pronoun for use in data-masked functions. | ||
#' @seealso [rlang::.data()] | ||
NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ ready4fun::write_fn_type_dirs() | |
fns_env_ls <- ready4fun::read_fns(c("data-raw/fns/","data-raw/mthds/"), | ||
fns_env = new.env(parent = globalenv())) | ||
x <- ready4fun::make_pkg_desc_ls(pkg_title_1L_chr = "Implement Transfer to Utility Mapping Algorithms", | ||
pkg_desc_1L_chr = "Modules from the ready4 youth mental health economic model (https://www.ready4-dev.com/docs/model/) that can be used to develop, assess, report and share utility mapping models. | ||
pkg_desc_1L_chr = "Modules from the readyforwhatsnext youth mental health economic model (https://readyforwhatsnext.org/) that can be used to develop, assess, report and share utility mapping models. | ||
Outputs produced through use of TTU package modules are designed to integrate with health economic models developed with the ready4 framework (https://www.ready4-dev.com/). | ||
This development version of the TTU package has been made available as part of the process of testing and documenting the package. | ||
If you have any questions, please contact the authors ([email protected]).", | ||
|
@@ -27,10 +27,10 @@ x <- ready4fun::make_pkg_desc_ls(pkg_title_1L_chr = "Implement Transfer to Utili | |
depends_chr = "specific"), | ||
build_ignore_ls = ready4fun::make_build_ignore_ls(file_nms_chr = c("initial_setup.R")), | ||
check_type_1L_chr = "ready4", | ||
copyright_holders_chr = "Orygen", | ||
copyright_holders_chr = "Matthew Hamilton and Orygen", | ||
custom_dmt_ls = ready4fun::make_custom_dmt_ls(),## | ||
dev_pkgs_chr = c("cmdstanr", | ||
"ready4",#"ready4fun", | ||
#"ready4",#"ready4fun", | ||
"ready4use","ready4show", | ||
#"youthvars","scorz", | ||
"specific"), | ||
|
@@ -189,7 +189,7 @@ z <- ready4pack::make_pt_ready4pack_manifest(x, | |
pkg_ds_ls_ls = datasets_ls) %>% | ||
ready4pack::ready4pack_manifest() | ||
z <- ready4::author(z) | ||
ready4::write_extra_pkgs_to_actions(consent_1L_chr = "Y") | ||
ready4::write_extra_pkgs_to_actions(path_to_dir_1L_chr = ".github/workflows", consent_1L_chr = "Y") | ||
usethis::use_dev_package("youthvars", | ||
type = "Suggests",#D? | ||
remote = "ready4-dev/youthvars") | ||
|
@@ -200,10 +200,10 @@ usethis::use_dev_package("specific", | |
type = "Depends", | ||
remote = "ready4-dev/specific") | ||
write_to_edit_workflow("pkgdown.yaml", consent_1L_chr = "Y") # In other packages, run for "test-coverage.yaml" as well. | ||
readLines("_pkgdown.yml") %>% | ||
stringr::str_replace_all(" - text: Model", " - text: Framework & Model") %>% | ||
writeLines(con = "_pkgdown.yml") | ||
devtools::build_vignettes() | ||
write_to_tidy_pkg(z$x_ready4fun_manifest, build_vignettes_1L_lgl = TRUE, | ||
clean_license_1L_lgl = TRUE, consent_1L_chr = "Y", | ||
examples_chr = character(0), | ||
suggest_chr = "pkgload") | ||
# usethis::use_package("readr") | ||
# MANUAL DELETION OF TRAILING INCLUDE | ||
# usethis::use_dev_package("ready4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
citHeader(paste0("To cite ",meta$Package," in publications use:")) | ||
|
||
citEntry( | ||
entry = "Manual", | ||
bibentry( | ||
bibtype = "Manual", | ||
doi = "10.5281/zenodo.5646593", | ||
title = paste0(meta$Package,": ",meta$Title), | ||
author = c(person("Caroline Gao <[email protected]> [aut]", "(<https://orcid.org/0000-0002-0987-2759>)"), person("Matthew Hamilton <[email protected]> [aut, cre, fnd]", "(<https://orcid.org/0000-0001-7407-9194>)")), | ||
year = "2023", | ||
year = "2024", | ||
note = sprintf("R package version %s", meta$Version), | ||
url = "https://ready4-dev.github.io/TTU/", | ||
textVersion = paste("Caroline Gao <[email protected]> [aut] (<https://orcid.org/0000-0002-0987-2759>), Matthew Hamilton <[email protected]> [aut, cre and fnd] (<https://orcid.org/0000-0001-7407-9194>) ", | ||
"(2023).", | ||
"(2024).", | ||
paste0(meta$Package,": ",meta$Title, | ||
"."), | ||
paste0(sprintf("Version %s", meta$Version),"."), | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.