Skip to content

Commit

Permalink
revert rd reorder; docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru committed Jan 25, 2024
1 parent 191b9d4 commit 80d80a8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
3 changes: 1 addition & 2 deletions R/Viewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ NULL
#'
#' @return not meaningful. Called for the side effect of opening a browser or viewer pane.
#'
#' @export
#'
#' @examples
#' if (interactive()) {
#' sl5 <- factor(iris$Sepal.Length > 5,
Expand All @@ -39,6 +37,7 @@ NULL
#'
#' Viewer(tbl, tbl2)
#' }
#' @export
Viewer <- function(x, y = NULL, ...) {
check_convert <- function(x, name, accept_NULL = FALSE) {
if (accept_NULL && is.null(x)) {
Expand Down
13 changes: 5 additions & 8 deletions R/tt_export.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ import_from_tsv <- function(file) {

#' @importFrom formatters export_as_txt
#'
#' @export
#'
#' @examples
#' lyt <- basic_table() %>%
#' split_cols_by("ARM") %>%
Expand All @@ -69,6 +67,7 @@ import_from_tsv <- function(file) {
#' export_as_txt(tbl, file = tf)
#' system2("cat", tf)
#' }
#' @export
formatters::export_as_txt

# data.frame output ------------------------------------------------------------
Expand Down Expand Up @@ -451,8 +450,6 @@ collapse_values <- function(colvals) {

#' @importFrom formatters export_as_pdf
#'
#' @export
#'
#' @examples
#' lyt <- basic_table() %>%
#' split_cols_by("ARM") %>%
Expand All @@ -466,6 +463,7 @@ collapse_values <- function(colvals) {
#' tf <- tempfile(fileext = ".pdf")
#' export_as_pdf(tbl, file = tf, lpp = 8)
#' }
#' @export
formatters::export_as_pdf

# only used in pagination
Expand Down Expand Up @@ -509,10 +507,6 @@ formatters::export_as_pdf
#' `tt_to_flextable()`.
#' }
#'
#' @name export_as_docx
#'
#' @export
#'
#' @seealso [tt_to_flextable()]
#'
#' @examples
Expand All @@ -526,6 +520,9 @@ formatters::export_as_pdf
#' \dontrun{
#' tf <- tempfile(fileext = ".docx")
#' export_as_docx(tbl, file = tf, section_properties = section_properties_portrait())
#' }
#' @name export_as_docx
#' @export
export_as_docx <- function(tt,
file,
doc_metadata = NULL,
Expand Down
13 changes: 13 additions & 0 deletions man/export_as_docx.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80d80a8

Please sign in to comment.