Skip to content

Commit

Permalink
split package (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Zhu <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
shajoezhu and github-actions[bot] authored Nov 14, 2024
1 parent 7c4503d commit dccd62f
Show file tree
Hide file tree
Showing 21 changed files with 1,786 additions and 304 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
sd-direction: upstream
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/formatters
insightsengineering/rtables
default-landing-page: latest-tag
additional-unit-test-report-directories: unit-test-report-non-cran
11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Authors@R: c(
person("Joe", "Zhu", , "[email protected]", role = c("aut", "cre")),
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd"))
)
Description: Rtables to officer
Description: This package is dedicated to convert `rtables` object to tables in use in `pptx` and `docx` files.
License: Apache License 2.0 | file LICENSE
URL: https://github.com/insightsengineering/rtables.officer,
https://insightsengineering.github.io/rtables.officer/
Expand All @@ -20,20 +20,19 @@ Depends:
magrittr (>= 1.5),
methods,
R (>= 2.10),
rtables (>= 0.6.9)
rtables (>= 0.6.10.9003)
Imports:
checkmate (>= 2.1.0),
htmltools (>= 0.5.4),
flextable (>= 0.9.6),
lifecycle (>= 0.2.0),
officer (>= 0.6.6),
stats,
stringi (>= 1.6)
Suggests:
broom (>= 1.0.6),
car (>= 3.0-13),
dplyr (>= 1.0.5),
flextable (>= 0.9.6),
knitr (>= 1.42),
officer (>= 0.6.6),
r2rtf (>= 0.3.2),
rmarkdown (>= 2.23),
survival (>= 3.3-1),
Expand All @@ -60,3 +59,5 @@ RoxygenNote: 7.3.2
Collate:
'package.R'
'tt_export.R'
'tt_as_flextable.R'
'tt_to_paginate_office.R'
23 changes: 8 additions & 15 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,23 @@

export(export_as_docx)
export(export_as_pdf)
export(export_as_tsv)
export(export_as_txt)
export(import_from_tsv)
export(margins_landscape)
export(margins_potrait)
export(section_properties_default)
export(theme_docx_default)
export(theme_html_default)
export(tt_to_flextable)
export(word_mm_to_pt)
import(flextable)
import(formatters)
import(methods)
import(officer)
import(rtables)
importFrom(formatters,export_as_pdf)
importFrom(formatters,export_as_txt)
importFrom(htmltools,tagList)
importFrom(htmltools,tags)
importFrom(lifecycle,deprecated)
importFrom(magrittr,"%>%")
importFrom(stats,binom.test)
importFrom(stats,na.omit)
importFrom(stats,prop.test)
importFrom(stats,quantile)
importFrom(stats,relevel)
importFrom(rtables,import_from_tsv)
importFrom(stats,setNames)
importFrom(tools,file_ext)
importFrom(utils,head)
importFrom(utils,head.matrix)
importFrom(utils,read.table)
importFrom(utils,tail)
importFrom(utils,tail.matrix)
importFrom(utils,write.table)
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## rtables.officer 0.0.1.9003

### New Features
* First version.
5 changes: 5 additions & 0 deletions R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

#' @importFrom lifecycle deprecated
#' @importFrom magrittr %>%
#' @importFrom stats setNames
#' @import methods
#' @import formatters
#' @import rtables
#' @importFrom rtables import_from_tsv
#' @import officer
#' @import flextable
NULL
Loading

0 comments on commit dccd62f

Please sign in to comment.