new version and standard docs

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-02-07 20:57:26 +01:00
parent c0b5e67b1c
commit fea603defc
5 changed files with 36 additions and 4 deletions

View File

@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^\.github$

10
.Rprofile Normal file
View File

@ -0,0 +1,10 @@
options(
renv.settings.snapshot.type = "explicit",
renv.config.auto.snapshot = TRUE,
renv.config.pak.enabled = TRUE
)
source("renv/activate.R")
if (interactive()) {
suppressMessages(require(usethis))
}

View File

@ -1,6 +1,6 @@
Package: stRoke
Title: Clinical Stroke Research
Version: 23.9.1
Version: 24.2.1
Authors@R:
person("Andreas Gammelgaard", "Damsbo", , "agdamsbo@clin.au.dk", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7559-1154"))
@ -17,7 +17,7 @@ BugReports: https://github.com/agdamsbo/stRoke/issues
License: GPL-3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
LazyData: true
Suggests:
covr,
@ -25,13 +25,17 @@ Suggests:
knitr,
rmarkdown,
spelling,
testthat (>= 3.0.0)
usethis,
testthat,
git2r,
pak
Language: en-US
Config/testthat/edition: 3
Imports:
calendar,
dplyr,
ggplot2,
glue,
grDevices,
gtsummary,
lubridate,
@ -39,7 +43,9 @@ Imports:
rankinPlot,
stats,
tidyr,
utils
utils,
tibble,
tidyselect
Depends:
R (>= 2.10)
VignetteBuilder: knitr

View File

@ -11,10 +11,12 @@ export(cpr_check)
export(cpr_dob)
export(cpr_female)
export(ds2dd)
export(ds2ical)
export(files_filter)
export(generic_stroke)
export(index_plot)
export(label_select)
export(mfi_domains)
export(n_chunks)
export(pase_calc)
export(quantile_cut)

12
NEWS.md
View File

@ -1,3 +1,15 @@
# stRoke 24.2.1
### Functions:
* NEW: `ds2ical()` converts data set to ical format with easy glue string for summary and description. Export .ics file with `calendar::ic_write()`.
* UPDATE: `pase_calc()` updated for uniform column naming in output as well as streamlining the function a bit.
* UPDATE: `add_padding()` updated to include option to add leading and/or tailing string with `lead` or `tail`.
* NEW: `mfi_calc()` calculates domain scores from the MFI questionnaire. Takes data frame of 20 ordered as the questionnaire. Default is to reverse questions with reverse scoring.
# stRoke 23.9.1
### Functions: