Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Nov 9, 2024
1 parent 6bdd89d commit b091c06
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export(theme_docx_default)
export(theme_html_default)
export(tt_to_flextable)
export(word_mm_to_pt)
import(flextable)
import(methods)
import(officer)
import(rtables)
importFrom(formatters,export_as_pdf)
importFrom(formatters,export_as_txt)
Expand Down
2 changes: 2 additions & 0 deletions R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#' @importFrom magrittr %>%
#' @import methods
#' @import rtables
#' @import officer
#' @import flextable
NULL


Expand Down
17 changes: 17 additions & 0 deletions R/tt_to_paginate_office.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pos_to_path <- function(pos) {
spls <- pos_splits(pos)
vals <- pos_splvals(pos)

path <- character()
for (i in seq_along(spls)) {
nm <- obj_name(spls[[i]])
val_i <- value_names(vals[[i]])
path <- c(
path,
obj_name(spls[[i]]),
## rawvalues(vals[[i]]))
if (!is.na(val_i)) val_i
)
}
path
}

0 comments on commit b091c06

Please sign in to comment.