From 892717d64cd57b0125d272b9d05f226713e617d3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:31:05 +0000 Subject: [PATCH] Update pkgdown documentation 031cfdbf7e2355560173ca96ecc14010d14db452 --- main/404.html | 23 +- main/CODE_OF_CONDUCT.html | 116 +-- main/CONTRIBUTING.html | 144 +--- main/LICENSE-text.html | 71 +- main/SECURITY.html | 83 +- main/articles/index.html | 87 +- main/articles/previewerReporter.html | 23 +- main/articles/simpleReporter.html | 23 +- .../teal-reporter-blocks-overview.html | 27 +- main/articles/teal-reporter.html | 23 +- main/authors.html | 81 +- main/index.html | 23 +- main/news/index.html | 218 ++--- main/pkgdown.yml | 2 +- main/reference/ContentBlock.html | 300 ++----- main/reference/FileBlock.html | 243 ++---- main/reference/NewpageBlock.html | 161 +--- main/reference/PictureBlock.html | 364 +++------ main/reference/RcodeBlock.html | 370 +++------ main/reference/Renderer.html | 311 ++----- main/reference/ReportCard.html | 658 ++++----------- main/reference/Reporter.html | 762 +++++------------- main/reference/TableBlock.html | 212 ++--- main/reference/TextBlock.html | 374 +++------ main/reference/add_card_button.html | 117 +-- main/reference/as_yaml_auto.html | 114 +-- main/reference/conv_str_logi.html | 104 +-- main/reference/download_report_button.html | 115 +-- main/reference/get_bs_version.html | 79 +- main/reference/get_yaml_field.html | 96 +-- main/reference/index.html | 183 ++--- main/reference/md_header.html | 89 +- main/reference/panel_item.html | 98 +-- main/reference/print.rmd_yaml_header.html | 95 +-- main/reference/report_load_srv.html | 99 +-- main/reference/report_load_ui.html | 96 +-- .../reference/report_render_and_compress.html | 98 +-- main/reference/reporter_download_inputs.html | 89 +- main/reference/reporter_previewer.html | 118 +-- main/reference/reset_report_button.html | 99 +-- main/reference/rmd_output_arguments.html | 96 +-- main/reference/rmd_outputs.html | 86 +- main/reference/simple_reporter.html | 121 +-- main/reference/split_text_block.html | 95 +-- main/reference/teal.reporter-package.html | 99 +-- main/reference/to_flextable.html | 95 +-- main/reference/yaml_quoted.html | 93 +-- main/search.json | 2 +- 48 files changed, 1765 insertions(+), 5310 deletions(-) diff --git a/main/404.html b/main/404.html index 9b529037..a3e34287 100644 --- a/main/404.html +++ b/main/404.html @@ -1,4 +1,5 @@ - + + @@ -21,7 +22,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -87,80 +48,65 @@

Contributor Covenant Code of Conduct

-

Our Pledge -

+

Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

-

Our Standards -

+

Our Standards

Examples of behavior that contributes to a positive environment for our community include:

-
+
-

Enforcement Responsibilities -

+

Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.

-

Scope -

+

Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

-

Enforcement -

+

Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

-

Enforcement Guidelines -

+

Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

-

1. Correction -

+

1. Correction

Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.

Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

-

2. Warning -

+

2. Warning

Community Impact: A violation through a single incident or series of actions.

Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.

-

3. Temporary Ban -

+

3. Temporary Ban

Community Impact: A serious violation of community standards, including sustained inappropriate behavior.

Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

-

4. Permanent Ban -

+

4. Permanent Ban

Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.

Consequence: A permanent ban from any sort of public interaction within the community.

-

Attribution -

+

Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.

Community Impact Guidelines were inspired by Mozilla’s code of conduct enforcement ladder.

For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

@@ -168,19 +114,17 @@

Attribution -

+ - + + + - - diff --git a/main/CONTRIBUTING.html b/main/CONTRIBUTING.html index 88ae07a6..1d4884b0 100644 --- a/main/CONTRIBUTING.html +++ b/main/CONTRIBUTING.html @@ -1,19 +1,5 @@ - - - - - - -Contribution Guidelines • teal.reporter - - - - - - - - - + +Contribution Guidelines • teal.reporter Skip to contents @@ -21,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -89,8 +50,7 @@

Contribution Guidelines

🙏 Thank you for taking the time to contribute!

Your input is deeply valued, whether an issue, a pull request, or even feedback, regardless of size, content or scope.

-

Table of contents -

+

Table of contents

👶 Getting started

📔 Code of Conduct

🗃 License

@@ -101,47 +61,38 @@

Table of contents❓ Questions

-

Getting started -

+

Getting started

Please refer the project documentation for a brief introduction. Please also see other articles within the project documentation for additional information.

-

Code of Conduct -

+

Code of Conduct

A Code of Conduct governs this project. Participants and contributors are expected to follow the rules outlined therein.

-

License -

+

License

All your contributions will be covered by this project’s license.

-

Issues -

+

Issues

We use GitHub to track issues, feature requests, and bugs. Before submitting a new issue, please check if the issue has already been reported. If the issue already exists, please upvote the existing issue 👍.

For new feature requests, please elaborate on the context and the benefit the feature will have for users, developers, or other relevant personas.

-

Pull requests -

+

Pull requests

-

GitHub Flow -

+

GitHub Flow

This repository uses the GitHub Flow model for collaboration. To submit a pull request:

-
    -
  1. +
    1. Create a branch

      Please see the branch naming convention below. If you don’t have write access to this repository, please fork it.

    2. Make changes

      Make sure your code

      -
        -
      • passes all checks imposed by GitHub Actions
      • +
        • passes all checks imposed by GitHub Actions
        • is well documented
        • is well tested with unit tests sufficiently covering the changes introduced
        • -
        - +
    3. Create a pull request (PR)

      In the pull request description, please link the relevant issue (if any), provide a detailed description of the change, and include any assumptions.

      @@ -155,93 +106,76 @@

      GitHub Flow -

      Branch naming convention -

      +

      Branch naming convention

      Suppose your changes are related to a current issue in the current project; please name your branch as follows: <issue_id>_<short_description>. Please use underscore (_) as a delimiter for word separation. For example, 420_fix_ui_bug would be a suitable branch name if your change is resolving and UI-related bug reported in issue number 420 in the current project.

      If your change affects multiple repositories, please name your branches as follows: <issue_id>_<issue_repo>_<short description>. For example, 69_awesomeproject_fix_spelling_error would reference issue 69 reported in project awesomeproject and aims to resolve one or more spelling errors in multiple (likely related) repositories.

monorepo and staged.dependencies - -

+

Sometimes you might need to change upstream dependent package(s) to be able to submit a meaningful change. We are using staged.dependencies functionality to simulate a monorepo behavior. The dependency configuration is already specified in this project’s staged_dependencies.yaml file. You need to name the feature branches appropriately. This is the only exception from the branch naming convention described above.

Please refer to the staged.dependencies package documentation for more details.

-

Coding guidelines -

+

Coding guidelines

This repository follows some unified processes and standards adopted by its maintainers to ensure software development is carried out consistently within teams and cohesively across other repositories.

-

Style guide -

+

Style guide

This repository follows the standard tidyverse style guide and uses lintr for lint checks. Customized lint configurations are available in this repository’s .lintr file.

-

Dependency management -

+

Dependency management

Lightweight is the right weight. This repository follows tinyverse recommedations of limiting dependencies to minimum.

-

Dependency version management -

+

Dependency version management

If the code is not compatible with all (!) historical versions of a given dependenct package, it is required to specify minimal version in the DESCRIPTION file. In particular: if the development version requires (imports) the development version of another package - it is required to put abc (>= 1.2.3.9000).

- +
-

R & package versions -

+

R & package versions

We continuously test our packages against the newest R version along with the most recent dependencies from CRAN and BioConductor. We recommend that your working environment is also set up in the same way. You can find the details about the R version and packages used in the R CMD check GitHub Action execution log - there is a step that prints out the R sessionInfo().

If you discover bugs on older R versions or with an older set of dependencies, please create the relevant bug reports.

-

-pre-commit -

+

pre-commit

We highly recommend that you use the pre-commit tool combined with R hooks for pre-commit to execute some of the checks before committing and pushing your changes.

Pre-commit hooks are already available in this repository’s .pre-commit-config.yaml file.

-

Recognition model -

+

Recognition model

As mentioned previously, all contributions are deeply valued and appreciated. While all contribution data is available as part of the repository insights, to recognize a significant contribution and hence add the contributor to the package authors list, the following rules are enforced:

-

*Excluding auto-generated code, including but not limited to roxygen comments or renv.lock files.

The package maintainer also reserves the right to adjust the criteria to recognize contributions.

-

Questions -

+

Questions

If you have further questions regarding the contribution guidelines, please contact the package/repository maintainer.

- + - + + + - - diff --git a/main/LICENSE-text.html b/main/LICENSE-text.html index 07726450..7fbbe871 100644 --- a/main/LICENSE-text.html +++ b/main/LICENSE-text.html @@ -1,19 +1,5 @@ - - - - - - -License • teal.reporter - - - - - - - - - + +License • teal.reporter Skip to contents @@ -21,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -99,19 +60,17 @@

License

limitations under the License. - - + - + + + - - diff --git a/main/SECURITY.html b/main/SECURITY.html index 5732c7ca..d2c16165 100644 --- a/main/SECURITY.html +++ b/main/SECURITY.html @@ -1,19 +1,5 @@ - - - - - - -Security Policy • teal.reporter - - - - - - - - - + +Security Policy • teal.reporter Skip to contents @@ -21,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -87,44 +48,38 @@

Security Policy

-

Reporting Security Issues -

+

Reporting Security Issues

If you believe you have found a security vulnerability in any of the repositories in this organization, please report it to us through coordinated disclosure.

Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.

Instead, please send an email to vulnerability.management[@]roche.com.

Please include as much of the information listed below as you can to help us better understand and resolve the issue:

-

This information will help us triage your report more quickly.

-

Data Security Standards (DSS) -

+

Data Security Standards (DSS)

Please make sure that while reporting issues in the form a bug, feature, or pull request, all sensitive information such as PII, PHI, and PCI is completely removed from any text and attachments, including pictures and videos.

- + - + + + - - diff --git a/main/articles/index.html b/main/articles/index.html index 84cbc743..85f38256 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -1,19 +1,5 @@ - - - - - - -Articles • teal.reporter - - - - - - - - - + +Articles • teal.reporter Skip to contents @@ -21,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -87,34 +48,26 @@

Articles

All vignettes

-
-
Report Previewer
+
Report Previewer
-
-
Simple Reporter
+
Simple Reporter
-
-
teal.reporter blocks overview
+
teal.reporter blocks overview
-
-
Getting Started with teal.reporter
+
Getting Started with teal.reporter
-
-
- - - +
+ - + + + - - diff --git a/main/articles/previewerReporter.html b/main/articles/previewerReporter.html index 67c1a1ac..a08df919 100644 --- a/main/articles/previewerReporter.html +++ b/main/articles/previewerReporter.html @@ -1,4 +1,5 @@ - + + @@ -21,7 +22,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -86,8 +47,7 @@

Authors and Citation

Authors

-
+

Citation

@@ -132,33 +91,31 @@

Citation

Kaledkowski D, Kirar K, Kosinski M, Nasinski M, Pagacz K, Hallal M (2024). teal.reporter: Reporting Tools for 'shiny' Modules. -R package version 0.3.1.9017, +R package version 0.3.1.9018, https://insightsengineering.github.io/teal.reporter/, https://github.com/insightsengineering/teal.reporter.

@Manual{,
   title = {teal.reporter: Reporting Tools for 'shiny' Modules},
   author = {Dawid Kaledkowski and Kartikeya Kirar and Marcin Kosinski and Maciej Nasinski and Konrad Pagacz and Mahmoud Hallal},
   year = {2024},
-  note = {R package version 0.3.1.9017,
+  note = {R package version 0.3.1.9018,
     https://insightsengineering.github.io/teal.reporter/},
   url = {https://github.com/insightsengineering/teal.reporter},
 }
- + - + + + - - diff --git a/main/index.html b/main/index.html index 6fa8a23e..e6ffa591 100644 --- a/main/index.html +++ b/main/index.html @@ -1,4 +1,5 @@ - + + @@ -23,7 +24,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -85,123 +46,82 @@

Changelog

-

teal.reporter 0.3.1.9017 -

+

teal.reporter 0.3.1.9018

-

Enhancements -

-
+
-

teal.reporter 0.3.1 -

-

CRAN release: 2024-03-15

+

teal.reporter 0.3.1

CRAN release: 2024-03-15

-

Enhancements -

- -
+

Enhancements

+
-

teal.reporter 0.3.0 -

-

CRAN release: 2024-02-16

+

teal.reporter 0.3.0

CRAN release: 2024-02-16

-

Enhancements -

-
+
-

teal.reporter 0.2.1 -

-

CRAN release: 2023-09-08

+

teal.reporter 0.2.1

CRAN release: 2023-09-08

-

Miscellaneous -

-
+
-

teal.reporter 0.2.0 -

+

teal.reporter 0.2.0

-

New features -

-
+
-

Breaking changes -

- -
+

Breaking changes

+
-

Enhancements -

-
+
-

Miscellaneous -

- -
+

Miscellaneous

+
-

teal.reporter 0.1.1 -

+

teal.reporter 0.1.1

-

New features -

- -
+

New features

+
-

Breaking changes -

- -
+

Breaking changes

+
-

Enhancements -

-
+
-

Bug fixes -

- -
+

Bug fixes

+
-

Miscellaneous -

-
+
-

teal.reporter 0.1.0 -

- -
+

teal.reporter 0.1.0

+ - + - + + + - - diff --git a/main/pkgdown.yml b/main/pkgdown.yml index eb62b8b4..fb61d27f 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -6,7 +6,7 @@ articles: simpleReporter: simpleReporter.html teal-reporter-blocks-overview: teal-reporter-blocks-overview.html teal-reporter: teal-reporter.html -last_built: 2024-11-27T14:24Z +last_built: 2024-12-11T09:30Z urls: reference: https://insightsengineering.github.io/teal.reporter/reference article: https://insightsengineering.github.io/teal.reporter/articles diff --git a/main/reference/ContentBlock.html b/main/reference/ContentBlock.html index 8116a8d4..bee523c7 100644 --- a/main/reference/ContentBlock.html +++ b/main/reference/ContentBlock.html @@ -1,25 +1,9 @@ - - - - - - -ContentBlock: A building block for report content — ContentBlock • teal.reporter - - - - - -ContentBlock: A building block for report content — ContentBlock • teal.reporter - - - - - +It serves as a foundation for constructing complex report structures."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -86,8 +45,7 @@
@@ -100,239 +58,136 @@

-

Methods -

+

Methods

-

-
-
-

Method new() -

-

Initialize a ContentBlock object.

-
-

Usage -

-

-
- -

-
+


+

Method new()

+

Initialize a ContentBlock object.

+

Usage

+

-

Details -

+

Details

Returns a ContentBlock object with no content and the default style.

-

Returns -

+

Returns

Object of class ContentBlock, invisibly.

-

Examples -

-

-
-
ContentBlock <- getFromNamespace("ContentBlock", "teal.reporter")
+

Examples

+

ContentBlock <- getFromNamespace("ContentBlock", "teal.reporter")
 ContentBlock$new()
-
-

-
+

-
-

-
-
-

Method set_content() -

-

Sets content of this ContentBlock.

-
-

Usage -

-

-
-
ContentBlock$set_content(content)
-

-
+


+

Method set_content()

+

Sets content of this ContentBlock.

+

Usage

+

ContentBlock$set_content(content)

-

Arguments -

-

-
-
-
content
+

Arguments

+

content

(character(0) or character(1)) string or file path assigned to this ContentBlock

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
ContentBlock <- getFromNamespace("ContentBlock", "teal.reporter")
+

Examples

+

ContentBlock <- getFromNamespace("ContentBlock", "teal.reporter")
 block <- ContentBlock$new()
 block$set_content("Base64 encoded picture")
-
-

-
+

-
-

-
-
-

Method get_content() -

-

Retrieves the content assigned to this block.

-
-

Usage -

-

-
-
ContentBlock$get_content()
-

-
+


+

Method get_content()

+

Retrieves the content assigned to this block.

+

Usage

+

ContentBlock$get_content()

-

Returns -

+

Returns

character string or file path assigned to this ContentBlock.

-

Examples -

-

-
-
ContentBlock <- getFromNamespace("ContentBlock", "teal.reporter")
+

Examples

+

ContentBlock <- getFromNamespace("ContentBlock", "teal.reporter")
 block <- ContentBlock$new()
 block$get_content()
-
-

-
+

-
-

-
-
-

Method from_list() -

-

Create the ContentBlock from a list.

-
-

Usage -

-

-
-
ContentBlock$from_list(x)
-

-
+


+

Method from_list()

+

Create the ContentBlock from a list.

+

Usage

+

ContentBlock$from_list(x)

-

Arguments -

-

-
-
-
x
+

Arguments

+

x

(named list) with two fields text and style. Use the get_available_styles method to get all possible styles.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method to_list() -

-

Convert the ContentBlock to a list.

-
-

Usage -

-

-
-
ContentBlock$to_list()
-

-
+


+

Method to_list()

+

Convert the ContentBlock to a list.

+

Usage

+

ContentBlock$to_list()

-

Returns -

+

Returns

named list with a text and style.

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
ContentBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

ContentBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -340,8 +195,7 @@

Arguments -

Examples -

+

Examples


 ## ------------------------------------------------
 ## Method `ContentBlock$new`
@@ -383,19 +237,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/FileBlock.html b/main/reference/FileBlock.html index 4f71f0ef..a746ef5b 100644 --- a/main/reference/FileBlock.html +++ b/main/reference/FileBlock.html @@ -1,23 +1,7 @@ - - - - - - -FileBlock — FileBlock • teal.reporter - - - - - - - - - - - + +FileBlock — FileBlock • teal.reporter Skip to contents @@ -25,7 +9,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -96,77 +55,46 @@

FileBlock

-

Super class -

+

Super class

teal.reporter::ContentBlock -> FileBlock

-

Methods -

+

Methods

-

Inherited methods

Inherited methods

-
-
-

Method finalize() -

-

Finalize the FileBlock.

-
-

Usage -

-

-
-
FileBlock$finalize()
-

-
+


+

Method finalize()

+

Finalize the FileBlock.

+

Usage

+

FileBlock$finalize()

-

Details -

+

Details

Removes the temporary file created in the constructor.

-
-

-
-
-

Method from_list() -

+


+

Method from_list()

Create the FileBlock from a list. -The list should contain one named field, "basename".

-
-

Usage -

-

-
-
FileBlock$from_list(x, output_dir)
-

-
+The list should contain one named field, "basename".

+

Usage

+

FileBlock$from_list(x, output_dir)

-

Arguments -

-

-
-
-
x
+

Arguments

+

x

(named list) with one field "basename", a name of the file.

@@ -174,111 +102,65 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
FileBlock <- getFromNamespace("FileBlock", "teal.reporter")
+

Examples

+

FileBlock <- getFromNamespace("FileBlock", "teal.reporter")
 block <- FileBlock$new()
 file_path <- tempfile(fileext = ".png")
 saveRDS(iris, file_path)
 block$from_list(list(basename = basename(file_path)), dirname(file_path))
-
-

-
+

-
-

-
-
-

Method to_list() -

-

Convert the FileBlock to a list.

-
-

Usage -

-

-
-
FileBlock$to_list(output_dir)
-

-
+


+

Method to_list()

+

Convert the FileBlock to a list.

+

Usage

+

FileBlock$to_list(output_dir)

-

Arguments -

-

-
-
-
output_dir
+

Arguments

+

output_dir

(character) with a path to the directory where a file will be copied.

-
-

-
+

-

Returns -

+

Returns

named list with a basename of the file.

-

Examples -

-

-
-
FileBlock <- getFromNamespace("FileBlock", "teal.reporter")
+

Examples

+

FileBlock <- getFromNamespace("FileBlock", "teal.reporter")
 block <- FileBlock$new()
 block$to_list(tempdir())
-
-

-
+

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
FileBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

FileBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -286,8 +168,7 @@

Arguments -

Examples -

+

Examples


 ## ------------------------------------------------
 ## Method `FileBlock$from_list`
@@ -314,19 +195,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/NewpageBlock.html b/main/reference/NewpageBlock.html index ccb76012..20456942 100644 --- a/main/reference/NewpageBlock.html +++ b/main/reference/NewpageBlock.html @@ -1,21 +1,5 @@ - - - - - - -NewpageBlock — NewpageBlock • teal.reporter - - - - - - - - - - - + +NewpageBlock — NewpageBlock • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -93,98 +52,59 @@

NewpageBlock

-

Super class -

+

Super class

teal.reporter::ContentBlock -> NewpageBlock

-

Methods -

+

Methods

-

Public methods -

+

Public methods

-
-

Inherited methods

Inherited methods

-
-
-

Method new() -

-

Initialize a NewpageBlock object.

-
-

Usage -

-

-
- -

-
+


+

Method new()

+

Initialize a NewpageBlock object.

+

Usage

+

-

Details -

+

Details

Returns a NewpageBlock object with no content and the default style.

-

Returns -

+

Returns

Object of class NewpageBlock, invisibly.

-

Examples -

-

-
-
NewpageBlock <- getFromNamespace("NewpageBlock", "teal.reporter")
+

Examples

+

NewpageBlock <- getFromNamespace("NewpageBlock", "teal.reporter")
 block <- NewpageBlock$new()
-
-

-
+

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
NewpageBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

NewpageBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -192,8 +112,7 @@

Arguments -

Examples -

+

Examples


 ## ------------------------------------------------
 ## Method `NewpageBlock$new`
@@ -205,19 +124,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/PictureBlock.html b/main/reference/PictureBlock.html index 9fc7c183..83b07b94 100644 --- a/main/reference/PictureBlock.html +++ b/main/reference/PictureBlock.html @@ -1,25 +1,9 @@ - - - - - - -PictureBlock — PictureBlock • teal.reporter - - - - - -PictureBlock — PictureBlock • teal.reporter - - - - - +It can save plots to files, set titles and specify dimensions."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -99,319 +58,185 @@

PictureBlock

-

Super classes -

+

Super classes

teal.reporter::ContentBlock -> teal.reporter::FileBlock -> PictureBlock

Inherited methods

-
-
-

Method new() -

-

Initialize a PictureBlock object.

-
-

Usage -

-

-
-
PictureBlock$new(plot)
-

-
+


+

Method new()

+

Initialize a PictureBlock object.

+

Usage

+

PictureBlock$new(plot)

-

Arguments -

-

-
-
-
plot
+

Arguments

+

plot

(ggplot or grid) a picture in this PictureBlock

-
-

-
+

-

Returns -

+

Returns

Object of class PictureBlock, invisibly.

-
-

-
-
-

Method set_content() -

-

Sets the content of this PictureBlock.

-
-

Usage -

-

-
-
PictureBlock$set_content(content)
-

-
+


+

Method set_content()

+

Sets the content of this PictureBlock.

+

Usage

+

PictureBlock$set_content(content)

-

Arguments -

-

-
-
-
content
+

Arguments

+

content

(ggplot or grob or trellis) a picture in this PictureBlock

-
-

-
+

-

Details -

+

Details

Raises error if argument is not a ggplot, grob or trellis plot.

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method set_title() -

-

Sets the title of this PictureBlock.

-
-

Usage -

-

-
-
PictureBlock$set_title(title)
-

-
+


+

Method set_title()

+

Sets the title of this PictureBlock.

+

Usage

+

PictureBlock$set_title(title)

-

Arguments -

-

-
-
-
title
+

Arguments

+

title

(character(1)) a string assigned to this PictureBlock

-
-

-
+

-

Details -

+

Details

Raises error if argument is not character(1).

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
+

Examples

+

PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
 block <- PictureBlock$new()
 block$set_title("Title")
-
-

-
+

-
-

-
-
-

Method get_title() -

-

Get the title of this PictureBlock.

-
-

Usage -

-

-
-
PictureBlock$get_title()
-

-
+


+

Method get_title()

+

Get the title of this PictureBlock.

+

Usage

+

PictureBlock$get_title()

-

Returns -

+

Returns

The content of this PictureBlock.

-

Examples -

-

-
-
PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
+

Examples

+

PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
 block <- PictureBlock$new()
 block$get_title()
-
-

-
+

-
-

-
-
-

Method set_dim() -

-

Sets the dimensions of this PictureBlock.

-
-

Usage -

-

-
-
PictureBlock$set_dim(dim)
-

-
+


+

Method set_dim()

+

Sets the dimensions of this PictureBlock.

+

Usage

+

PictureBlock$set_dim(dim)

-

Arguments -

-

-
-
-
dim
+

Arguments

+

dim

(numeric(2)) figure dimensions (width and height) in pixels.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
+

Examples

+

PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
 block <- PictureBlock$new()
 block$set_dim(c(800, 600))
-
-

-
+

-
-

-
-
-

Method get_dim() -

-

Get PictureBlock dimensions as a numeric vector.

-
-

Usage -

-

-
-
PictureBlock$get_dim()
-

-
+


+

Method get_dim()

+

Get PictureBlock dimensions as a numeric vector.

+

Usage

+

PictureBlock$get_dim()

-

Returns -

+

Returns

numeric the array of 2 numeric values representing width and height in pixels.

-

Examples -

-

-
-
PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
+

Examples

+

PictureBlock <- getFromNamespace("PictureBlock", "teal.reporter")
 block <- PictureBlock$new()
-block$get_dim()
-

-
+block$get_dim()

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
PictureBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

PictureBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -419,8 +244,7 @@

Arguments -

Examples -

+

Examples

library(ggplot2)
 library(lattice)
 
@@ -475,19 +299,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/RcodeBlock.html b/main/reference/RcodeBlock.html index 93df0f37..b8fbe668 100644 --- a/main/reference/RcodeBlock.html +++ b/main/reference/RcodeBlock.html @@ -1,21 +1,5 @@ - - - - - - -RcodeBlock — RcodeBlock • teal.reporter - - - - - - - - - - - + +RcodeBlock — RcodeBlock • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -93,54 +52,34 @@

RcodeBlock

-

Super class -

+

Super class

teal.reporter::ContentBlock -> RcodeBlock

Inherited methods

-
-
-

Method new() -

-

Initialize a RcodeBlock object.

-
-

Usage -

-

-
-
RcodeBlock$new(content = character(0), ...)
-

-
+


+

Method new()

+

Initialize a RcodeBlock object.

+

Usage

+

RcodeBlock$new(content = character(0), ...)

-

Arguments -

-

-
-
-
content
+

Arguments

+

content

(character(1) or character(0)) a string assigned to this RcodeBlock

@@ -148,280 +87,162 @@

Arguments -

Details -

+

Details

Returns a RcodeBlock object with no content and no parameters.

-

Returns -

+

Returns

Object of class RcodeBlock, invisibly.

-

Examples -

-

-
-
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
+

Examples

+

RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
 block <- RcodeBlock$new()
-
-

-
+

-
-

-
-
-

Method set_params() -

-

Sets the parameters of this RcodeBlock.

-
-

Usage -

-

-
-
RcodeBlock$set_params(params)
-

-
+


+

Method set_params()

+

Sets the parameters of this RcodeBlock.

+

Usage

+

RcodeBlock$set_params(params)

-

Arguments -

-

-
-
-
params
+

Arguments

+

params

(list) any rmarkdown R chunk parameter and its value.

-
-

-
+

-

Details -

+

Details

Configures rmarkdown chunk parameters for the R code block, influencing its rendering and execution behavior.

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
+

Examples

+

RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
 block <- RcodeBlock$new()
 block$set_params(list(echo = TRUE))
-
-

-
+

-
-

-
-
-

Method get_params() -

-

Get the parameters of this RcodeBlock.

-
-

Usage -

-

-
-
RcodeBlock$get_params()
-

-
+


+

Method get_params()

+

Get the parameters of this RcodeBlock.

+

Usage

+

RcodeBlock$get_params()

-

Returns -

+

Returns

character the parameters of this RcodeBlock.

-

Examples -

-

-
-
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
+

Examples

+

RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
 block <- RcodeBlock$new()
 block$get_params()
-
-

-
+

-
-

-
-
-

Method get_available_params() -

-

Get available array of parameters available to this RcodeBlock.

-
-

Usage -

-

-
-
RcodeBlock$get_available_params()
-

-
+


+

Method get_available_params()

+

Get available array of parameters available to this RcodeBlock.

+

Usage

+

RcodeBlock$get_available_params()

-

Returns -

+

Returns

A character array of parameters.

-

Examples -

-

-
-
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
+

Examples

+

RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
 block <- RcodeBlock$new()
 block$get_available_params()
-
-

-
+

-
-

-
-
-

Method from_list() -

-

Create the RcodeBlock from a list.

-
-

Usage -

-

-
-
RcodeBlock$from_list(x)
-

-
+


+

Method from_list()

+

Create the RcodeBlock from a list.

+

Usage

+

RcodeBlock$from_list(x)

-

Arguments -

-

-
-
-
x
+

Arguments

+

x

(named list) with two fields text and params. Use the get_available_params method to get all possible parameters.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
+

Examples

+

RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
 block <- RcodeBlock$new()
 block$from_list(list(text = "sth", params = list()))
-
-

-
+

-
-

-
-
-

Method to_list() -

-

Convert the RcodeBlock to a list.

-
-

Usage -

-

-
-
RcodeBlock$to_list()
-

-
+


+

Method to_list()

+

Convert the RcodeBlock to a list.

+

Usage

+

RcodeBlock$to_list()

-

Returns -

+

Returns

named list with a text and params.

-

Examples -

-

-
-
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
+

Examples

+

RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter")
 block <- RcodeBlock$new()
 block$to_list()
-
-

-
+

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
RcodeBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

RcodeBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -429,8 +250,7 @@

Arguments -

Examples -

+

Examples


 ## ------------------------------------------------
 ## Method `RcodeBlock$new`
@@ -508,19 +328,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/Renderer.html b/main/reference/Renderer.html index 53eadccc..dac994e1 100644 --- a/main/reference/Renderer.html +++ b/main/reference/Renderer.html @@ -1,23 +1,7 @@ - - - - - - -Renderer — Renderer • teal.reporter - - - - - - - - - - - + +Renderer — Renderer • teal.reporter Skip to contents @@ -25,7 +9,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -96,109 +55,64 @@

Renderer

-

Methods -

+

Methods

-

-
-
-

Method new() -

-

Initialize a Renderer object.

-
-

Usage -

-

-
-
Renderer$new()
-

-
+


+

Method new()

+

Initialize a Renderer object.

+

Usage

+

Renderer$new()

-

Details -

+

Details

Creates a new instance of Renderer with a temporary directory for storing report files.

-

Returns -

+

Returns

Object of class Renderer, invisibly.

-

Examples -

-

-
-
Renderer <- getFromNamespace("Renderer", "teal.reporter")
+

Examples

+

Renderer <- getFromNamespace("Renderer", "teal.reporter")
 Renderer$new()
-
-

-
+

-
-

-
-
-

Method finalize() -

-

Finalizes a Renderer object.

-
-

Usage -

-

-
-
Renderer$finalize()
-

-
+


+

Method finalize()

+

Finalizes a Renderer object.

+

Usage

+

Renderer$finalize()

-
-

-
-
-

Method renderRmd() -

-

Getting the Rmd text which could be easily rendered later.

-
-

Usage -

-

-
-
Renderer$renderRmd(
+


+

Method renderRmd()

+

Getting the Rmd text which could be easily rendered later.

+

Usage

+

Renderer$renderRmd(
   blocks,
   yaml_header,
   global_knitr = getOption("teal.reporter.global_knitr")
-)
-

-
+)

-

Arguments -

-

-
-
-
blocks
+

Arguments

+

blocks

(list) of TextBlock, PictureBlock and NewpageBlock objects.

@@ -211,57 +125,36 @@

Arguments -

Details -

+

Details

To access the default values for the global_knitr parameter, -use getOption('teal.reporter.global_knitr'). These defaults include:

-
    -
  • echo = TRUE

  • +use getOption('teal.reporter.global_knitr'). These defaults include:

    • echo = TRUE

    • tidy.opts = list(width.cutoff = 60)

    • tidy = TRUE if formatR package is installed, FALSE otherwise

    • -
    -
+
-

Returns -

+

Returns

Character vector constituting rmarkdown text (yaml header + body), ready to be rendered.

-
-

-
-
-

Method render() -

-

Renders the Report to the desired output format by compiling the rmarkdown file.

-
-

Usage -

-

-
-
Renderer$render(
+


+

Method render()

+

Renders the Report to the desired output format by compiling the rmarkdown file.

+

Usage

+

Renderer$render(
   blocks,
   yaml_header,
   global_knitr = getOption("teal.reporter.global_knitr"),
   ...
-)
-

-
+)

-

Arguments -

-

-
-
-
blocks
+

Arguments

+

blocks

(list) of TextBlock, PictureBlock or NewpageBlock objects.

@@ -278,93 +171,54 @@

Argumentsrmarkdown::render arguments, input and output_dir should not be updated.

-

-

-
+

-

Details -

+

Details

To access the default values for the global_knitr parameter, -use getOption('teal.reporter.global_knitr'). These defaults include:

-
    -
  • echo = TRUE

  • +use getOption('teal.reporter.global_knitr'). These defaults include:

    • echo = TRUE

    • tidy.opts = list(width.cutoff = 60)

    • tidy = TRUE if formatR package is installed, FALSE otherwise

    • -
    -
+
-

Returns -

+

Returns

character path to the output.

-
-

-
-
-

Method get_output_dir() -

-

Get output_dir field.

-
-

Usage -

-

-
-
Renderer$get_output_dir()
-

-
+


+

Method get_output_dir()

+

Get output_dir field.

+

Usage

+

Renderer$get_output_dir()

-

Returns -

+

Returns

character a output_dir field path.

-

Examples -

-

-
-
Renderer <- getFromNamespace("Renderer", "teal.reporter")$new()
+

Examples

+

Renderer <- getFromNamespace("Renderer", "teal.reporter")$new()
 Renderer$get_output_dir()
-
-

-
+

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
Renderer$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

Renderer$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -372,8 +226,7 @@

Arguments -

Examples -

+

Examples

-
+ - + + + - - diff --git a/main/reference/ReportCard.html b/main/reference/ReportCard.html index cc7a6e9d..e7c12dad 100644 --- a/main/reference/ReportCard.html +++ b/main/reference/ReportCard.html @@ -1,29 +1,13 @@ - - - - - - -ReportCard: An R6 class for building report elements — ReportCard • teal.reporter - - - - - - - - - - - +vignette("teal-reporter-blocks-overview", "teal.reporter").'> Skip to contents @@ -31,7 +15,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -90,8 +49,7 @@
@@ -106,15 +64,12 @@

-

Methods -

+

Methods

-

-
-
-

Method new() -

-

Initialize a ReportCard object.

-
-

Usage -

-

-
- -

-
+


+

Method new()

+

Initialize a ReportCard object.

+

Usage

+

-

Returns -

+

Returns

Object of class ReportCard, invisibly.

-

Examples -

-

-
-
card <- ReportCard$new()
-
-

-
+

Examples

+

card <- ReportCard$new()
+

-
-

-
-
-

Method append_table() -

-

Appends a table to this ReportCard.

-
-

Usage -

-

-
-
ReportCard$append_table(table)
-

-
+


+

Method append_table()

+

Appends a table to this ReportCard.

+

Usage

+

ReportCard$append_table(table)

-

Arguments -

-

-
-
-
table
+

Arguments

+

table

A (data.frame or rtables or TableTree or ElementaryTable or listing_df) that can be coerced into a table.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
card <- ReportCard$new()$append_table(iris)
-
-

-
+

Examples

+

card <- ReportCard$new()$append_table(iris)
+

-
-

-
-
-

Method append_plot() -

-

Appends a plot to this ReportCard.

-
-

Usage -

-

-
-
ReportCard$append_plot(plot, dim = NULL)
-

-
+


+

Method append_plot()

+

Appends a plot to this ReportCard.

+

Usage

+

ReportCard$append_plot(plot, dim = NULL)

-

Arguments -

-

-
-
-
plot
+

Arguments

+

plot

(ggplot or grob or trellis) plot object.

@@ -244,40 +146,23 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method append_text() -

-

Appends a text paragraph to this ReportCard.

-
-

Usage -

-

-
-
ReportCard$append_text(text, style = TextBlock$new()$get_available_styles()[1])
-

-
+


+

Method append_text()

+

Appends a text paragraph to this ReportCard.

+

Usage

+

ReportCard$append_text(text, style = TextBlock$new()$get_available_styles()[1])

-

Arguments -

-

-
-
-
text
+

Arguments

+

text

(character) The text content to add.

@@ -285,51 +170,29 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
card <- ReportCard$new()$append_text("A paragraph of default text")
-
-

-
+

Examples

+

card <- ReportCard$new()$append_text("A paragraph of default text")
+

-
-

-
-
-

Method append_rcode() -

-

Appends an R code chunk to ReportCard.

-
-

Usage -

-

-
-
ReportCard$append_rcode(text, ...)
-

-
+


+

Method append_rcode()

+

Appends an R code chunk to ReportCard.

+

Usage

+

ReportCard$append_rcode(text, ...)

-

Arguments -

-

-
-
-
text
+

Arguments

+

text

(character) The R code to include.

@@ -337,196 +200,109 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
card <- ReportCard$new()$append_rcode("2+2", echo = FALSE)
-
-

-
+

Examples

+

card <- ReportCard$new()$append_rcode("2+2", echo = FALSE)
+

-
-

-
-
-

Method append_content() -

-

Appends a generic ContentBlock to this ReportCard.

-
-

Usage -

-

-
-
ReportCard$append_content(content)
-

-
+


+

Method append_content()

+

Appends a generic ContentBlock to this ReportCard.

+

Usage

+

ReportCard$append_content(content)

-

Arguments -

-

-
-
-
content
+

Arguments

+

content

(ContentBlock) object.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
NewpageBlock <- getFromNamespace("NewpageBlock", "teal.reporter")
+

Examples

+

NewpageBlock <- getFromNamespace("NewpageBlock", "teal.reporter")
 card <- ReportCard$new()$append_content(NewpageBlock$new())
-
-

-
+

-
-

-
-
-

Method get_content() -

-

Get all content blocks from this ReportCard.

-
-

Usage -

-

-
-
ReportCard$get_content()
-

-
+


+

Method get_content()

+

Get all content blocks from this ReportCard.

+

Usage

+

ReportCard$get_content()

-

Returns -

+

Returns

list() list of TableBlock, TextBlock and PictureBlock.

-

Examples -

-

-
-
card <- ReportCard$new()$append_text("Some text")$append_metadata("rc", "a <- 2 + 2")
+

Examples

+

card <- ReportCard$new()$append_text("Some text")$append_metadata("rc", "a <- 2 + 2")
 
 card$get_content()
 
-
-

-
+

-
-

-
-
-

Method reset() -

-

Clears all content and metadata from ReportCard.

-
-

Usage -

-

-
-
ReportCard$reset()
-

-
+


+

Method reset()

+

Clears all content and metadata from ReportCard.

+

Usage

+

ReportCard$reset()

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method get_metadata() -

-

Get the metadata associated with ReportCard.

-
-

Usage -

-

-
-
ReportCard$get_metadata()
-

-
+


+

Method get_metadata()

+

Get the metadata associated with ReportCard.

+

Usage

+

ReportCard$get_metadata()

-

Returns -

+

Returns

named list list of elements.

-

Examples -

-

-
-
card <- ReportCard$new()$append_text("Some text")$append_metadata("rc", "a <- 2 + 2")
+

Examples

+

card <- ReportCard$new()$append_text("Some text")$append_metadata("rc", "a <- 2 + 2")
 
 card$get_metadata()
-
-

-
+

-
-

-
-
-

Method append_metadata() -

-

Appends metadata to this ReportCard.

-
-

Usage -

-

-
-
ReportCard$append_metadata(key, value)
-

-
+


+

Method append_metadata()

+

Appends metadata to this ReportCard.

+

Usage

+

ReportCard$append_metadata(key, value)

-

Arguments -

-

-
-
-
key
+

Arguments

+

key

(character(1)) string specifying the metadata key.

@@ -534,157 +310,85 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method get_name() -

-

Get the name of the ReportCard.

-
-

Usage -

-

-
-
ReportCard$get_name()
-

-
+


+

Method get_name()

+

Get the name of the ReportCard.

+

Usage

+

ReportCard$get_name()

-

Returns -

+

Returns

character a card name.

-

Examples -

-

-
-
ReportCard$new()$set_name("NAME")$get_name()
-

-
+

Examples

+

ReportCard$new()$set_name("NAME")$get_name()

-
-

-
-
-

Method set_name() -

-

Set the name of the ReportCard.

-
-

Usage -

-

-
-
ReportCard$set_name(name)
-

-
+


+

Method set_name()

+

Set the name of the ReportCard.

+

Usage

+

ReportCard$set_name(name)

-

Arguments -

-

-
-
-
name
+

Arguments

+

name

(character(1)) a card name.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
ReportCard$new()$set_name("NAME")$get_name()
-

-
+

Examples

+

ReportCard$new()$set_name("NAME")$get_name()

-
-

-
-
-

Method to_list() -

-

Convert the ReportCard to a list, including content and metadata.

-
-

Usage -

-

-
-
ReportCard$to_list(output_dir)
-

-
+


+

Method to_list()

+

Convert the ReportCard to a list, including content and metadata.

+

Usage

+

ReportCard$to_list(output_dir)

-

Arguments -

-

-
-
-
output_dir
+

Arguments

+

output_dir

(character) with a path to the directory where files will be copied.

-
-

-
+

-

Returns -

+

Returns

(named list) a ReportCard representation.

-
-

-
-
-

Method from_list() -

-

Reconstructs the ReportCard from a list representation.

-
-

Usage -

-

-
-
ReportCard$from_list(card, output_dir)
-

-
+


+

Method from_list()

+

Reconstructs the ReportCard from a list representation.

+

Usage

+

ReportCard$from_list(card, output_dir)

-

Arguments -

-

-
-
-
card
+

Arguments

+

card

(named list) a ReportCard representation.

@@ -692,46 +396,27 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
ReportCard$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

ReportCard$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -739,8 +424,7 @@

Arguments -

Examples -

+

Examples

+
-
+
+ + - - diff --git a/main/reference/Reporter.html b/main/reference/Reporter.html index 800c89ad..d4eaa614 100644 --- a/main/reference/Reporter.html +++ b/main/reference/Reporter.html @@ -1,25 +1,9 @@ - - - - - - -Reporter: An R6 class for managing report cards — Reporter • teal.reporter - - - - - -Reporter: An R6 class for managing report cards — Reporter • teal.reporter - - - - - +facilitating the creation, manipulation, and serialization of report-related data."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -86,8 +45,7 @@
@@ -100,22 +58,18 @@

-

Note -

+

Note

The function has to be used in the shiny reactive context.

if Report has an id when converting to JSON then It will be compared to the currently available one.

if Report has an id when converting to JSON then It will be compared to the currently available one.

-

Methods -

+

Methods

-

-
-
-

Method new() -

-

Initialize a Reporter object.

-
-

Usage -

-

-
-
Reporter$new()
-

-
+


+

Method new()

+

Initialize a Reporter object.

+

Usage

+

Reporter$new()

-

Returns -

+

Returns

Object of class Reporter, invisibly.

-

Examples -

-

-
-
reporter <- Reporter$new()
-
-

-
+

Examples

+

reporter <- Reporter$new()
+

-
-

-
-
-

Method append_cards() -

-

Append one or more ReportCard objects to the Reporter.

-
-

Usage -

-

-
-
Reporter$append_cards(cards)
-

-
+


+

Method append_cards()

+

Append one or more ReportCard objects to the Reporter.

+

Usage

+

Reporter$append_cards(cards)

-

Arguments -

-

-
-
-
cards
+

Arguments

+

cards

(ReportCard) or a list of such objects

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method get_cards() -

-

Retrieves all ReportCard objects contained in the Reporter.

-
-

Usage -

-

-
-
Reporter$get_cards()
-

-
+


+

Method get_cards()

+

Retrieves all ReportCard objects contained in the Reporter.

+

Usage

+

Reporter$get_cards()

-

Returns -

+

Returns

A (list) of ReportCard objects.

-
-

-
-
-

Method get_blocks() -

-

Compiles and returns all content blocks from the ReportCard in the Reporter.

-
-

Usage -

-

-
-
Reporter$get_blocks(sep = NewpageBlock$new())
-

-
+


+

Method get_blocks()

+

Compiles and returns all content blocks from the ReportCard in the Reporter.

+

Usage

+

Reporter$get_blocks(sep = NewpageBlock$new())

-

Arguments -

-

-
-
-
sep
+

Arguments

+

sep

An optional separator to insert between each content block. Default is a NewpageBlock$new()object.

-
-

-
+

-

Returns -

+

Returns

list() list of TableBlock, TextBlock, PictureBlock and NewpageBlock.

-
-

-
-
-

Method reset() -

-

Resets the Reporter, removing all ReportCard objects and metadata.

-
-

Usage -

-

-
-
Reporter$reset()
-

-
+


+

Method reset()

+

Resets the Reporter, removing all ReportCard objects and metadata.

+

Usage

+

Reporter$reset()

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method remove_cards() -

-

Removes specific ReportCard objects from the Reporter by their indices.

-
-

Usage -

-

-
-
Reporter$remove_cards(ids = NULL)
-

-
+


+

Method remove_cards()

+

Removes specific ReportCard objects from the Reporter by their indices.

+

Usage

+

Reporter$remove_cards(ids = NULL)

-

Arguments -

-

-
-
-
ids
+

Arguments

+

ids

(integer(id)) the indexes of cards

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method swap_cards() -

-

Swaps the positions of two ReportCard objects within the Reporter.

-
-

Usage -

-

-
-
Reporter$swap_cards(start, end)
-

-
+


+

Method swap_cards()

+

Swaps the positions of two ReportCard objects within the Reporter.

+

Usage

+

Reporter$swap_cards(start, end)

-

Arguments -

-

-
-
-
start
+

Arguments

+

start

(integer) the index of the first card

@@ -357,258 +207,143 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method get_reactive_add_card() -

-

Gets the current value of the reactive variable for adding cards.

-
-

Usage -

-

-
-
Reporter$get_reactive_add_card()
-

-
+


+

Method get_reactive_add_card()

+

Gets the current value of the reactive variable for adding cards.

+

Usage

+

Reporter$get_reactive_add_card()

-

Returns -

+

Returns

reactive_add_card current numeric value of the reactive variable.

-

Examples -

-

-
-
library(shiny)
+

Examples

+

library(shiny)
 
-isolate(Reporter$new()$get_reactive_add_card())
-

-
+isolate(Reporter$new()$get_reactive_add_card())

-
-

-
-
-

Method get_metadata() -

-

Get the metadata associated with this Reporter.

-
-

Usage -

-

-
-
Reporter$get_metadata()
-

-
+


+

Method get_metadata()

+

Get the metadata associated with this Reporter.

+

Usage

+

Reporter$get_metadata()

-

Returns -

+

Returns

named list of metadata to be appended.

-

Examples -

-

-
-
reporter <- Reporter$new()$append_metadata(list(sth = "sth"))
+

Examples

+

reporter <- Reporter$new()$append_metadata(list(sth = "sth"))
 reporter$get_metadata()
-
-

-
+

-
-

-
-
-

Method append_metadata() -

-

Appends metadata to this Reporter.

-
-

Usage -

-

-
-
Reporter$append_metadata(meta)
-

-
+


+

Method append_metadata()

+

Appends metadata to this Reporter.

+

Usage

+

Reporter$append_metadata(meta)

-

Arguments -

-

-
-
-
meta
+

Arguments

+

meta

(named list) of metadata to be appended.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
reporter <- Reporter$new()$append_metadata(list(sth = "sth"))
+

Examples

+

reporter <- Reporter$new()$append_metadata(list(sth = "sth"))
 reporter$get_metadata()
-
-

-
+

-
-

-
-
-

Method from_reporter() -

-

Reinitializes a Reporter instance by copying the report cards and metadata from another Reporter.

-
-

Usage -

-

-
-
Reporter$from_reporter(reporter)
-

-
+


+

Method from_reporter()

+

Reinitializes a Reporter instance by copying the report cards and metadata from another Reporter.

+

Usage

+

Reporter$from_reporter(reporter)

-

Arguments -

-

-
-
-
reporter
+

Arguments

+

reporter

(Reporter) instance to copy from.

-
-

-
+

-

Returns -

+

Returns

invisibly self

-

Examples -

-

-
-
reporter <- Reporter$new()
-reporter$from_reporter(reporter)
-

-
+

Examples

+

reporter <- Reporter$new()
+reporter$from_reporter(reporter)

-
-

-
-
-

Method to_list() -

-

Convert a Reporter to a list and transfer any associated files to specified directory.

-
-

Usage -

-

-
-
Reporter$to_list(output_dir)
-

-
+


+

Method to_list()

+

Convert a Reporter to a list and transfer any associated files to specified directory.

+

Usage

+

Reporter$to_list(output_dir)

-

Arguments -

-

-
-
-
output_dir
+

Arguments

+

output_dir

(character(1)) a path to the directory where files will be copied.

-
-

-
+

-

Returns -

+

Returns

named list representing the Reporter instance, including version information, metadata, and report cards.

-

Examples -

-

-
-
reporter <- Reporter$new()
+

Examples

+

reporter <- Reporter$new()
 tmp_dir <- file.path(tempdir(), "testdir")
 dir.create(tmp_dir)
-reporter$to_list(tmp_dir)
-

-
+reporter$to_list(tmp_dir)

-
-

-
-
-

Method from_list() -

-

Reinitializes a Reporter from a list representation and associated files in a specified directory.

-
-

Usage -

-

-
-
Reporter$from_list(rlist, output_dir)
-

-
+


+

Method from_list()

+

Reinitializes a Reporter from a list representation and associated files in a specified directory.

+

Usage

+

Reporter$from_list(rlist, output_dir)

-

Arguments -

-

-
-
-
rlist
+

Arguments

+

rlist

(named list) representing a Reporter instance.

@@ -616,224 +351,128 @@

Arguments -

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
reporter <- Reporter$new()
+

Examples

+

reporter <- Reporter$new()
 tmp_dir <- file.path(tempdir(), "testdir")
 unlink(tmp_dir, recursive = TRUE)
 dir.create(tmp_dir)
-reporter$from_list(reporter$to_list(tmp_dir), tmp_dir)
-

-
+reporter$from_list(reporter$to_list(tmp_dir), tmp_dir)

-
-

-
-
-

Method to_jsondir() -

-

Serializes the Reporter to a JSON file and copies any associated files to a specified directory.

-
-

Usage -

-

-
-
Reporter$to_jsondir(output_dir)
-

-
+


+

Method to_jsondir()

+

Serializes the Reporter to a JSON file and copies any associated files to a specified directory.

+

Usage

+

Reporter$to_jsondir(output_dir)

-

Arguments -

-

-
-
-
output_dir
+

Arguments

+

output_dir

(character(1)) a path to the directory where files will be copied, JSON and statics.

-
-

-
+

-

Returns -

+

Returns

output_dir argument.

-

Examples -

-

-
-
reporter <- Reporter$new()
+

Examples

+

reporter <- Reporter$new()
 tmp_dir <- file.path(tempdir(), "jsondir")
 dir.create(tmp_dir)
-reporter$to_jsondir(tmp_dir)
-

-
+reporter$to_jsondir(tmp_dir)

-
-

-
-
-

Method from_jsondir() -

-

Reinitializes a Reporter from a JSON file and files in a specified directory.

-
-

Usage -

-

-
-
Reporter$from_jsondir(output_dir)
-

-
+


+

Method from_jsondir()

+

Reinitializes a Reporter from a JSON file and files in a specified directory.

+

Usage

+

Reporter$from_jsondir(output_dir)

-

Arguments -

-

-
-
-
output_dir
+

Arguments

+

output_dir

(character(1)) a path to the directory with files, JSON and statics.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
reporter <- Reporter$new()
+

Examples

+

reporter <- Reporter$new()
 tmp_dir <- file.path(tempdir(), "jsondir")
 dir.create(tmp_dir)
 unlink(list.files(tmp_dir, recursive = TRUE))
 reporter$to_jsondir(tmp_dir)
-reporter$from_jsondir(tmp_dir)
-

-
+reporter$from_jsondir(tmp_dir)

-
-

-
-
-

Method set_id() -

+


+

Method set_id()

Set the Reporter id Optionally add id to a Reporter which will be compared when it is rebuilt from a list. -The id is added to the downloaded file name.

-
-

Usage -

-

-
-
Reporter$set_id(id)
-

-
+The id is added to the downloaded file name.

+

Usage

+

Reporter$set_id(id)

-

Arguments -

-

-
-
-
id
+

Arguments

+

id

(character(1)) a Report id.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-
-

-
-
-

Method get_id() -

-

Get the Reporter id

-
-

Usage -

-

-
-
Reporter$get_id()
-

-
+


+

Method get_id()

+

Get the Reporter id

+

Usage

+

Reporter$get_id()

-

Returns -

+

Returns

character(1) the Reporter id.

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
Reporter$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

Reporter$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -841,8 +480,7 @@

Arguments -

Examples -

+

Examples

library(ggplot2)
 library(rtables)
 
@@ -1021,7 +659,7 @@ 

Examples#> set_title: function (title) #> to_list: function (output_dir) #> Private: -#> content: /tmp/RtmplgXhu5/file398a46506d.png +#> content: /tmp/Rtmpvcn05j/file3936d104858.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap @@ -1094,7 +732,7 @@

Examples#> set_content: function (content) #> to_list: function (output_dir) #> Private: -#> content: /tmp/RtmplgXhu5/file3984ae010cb.rds +#> content: /tmp/Rtmpvcn05j/file39342ca252f.rds #> deep_clone: function (name, value) #> supported_tables: data.frame rtables TableTree ElementaryTable listing_df #> @@ -1110,7 +748,7 @@

Examples#> set_content: function (content) #> to_list: function (output_dir) #> Private: -#> content: /tmp/RtmplgXhu5/file39844e61db.rds +#> content: /tmp/Rtmpvcn05j/file3935c961792.rds #> deep_clone: function (name, value) #> supported_tables: data.frame rtables TableTree ElementaryTable listing_df #> @@ -1202,7 +840,7 @@

Examplestmp_dir <- file.path(tempdir(), "jsondir") dir.create(tmp_dir) reporter$to_jsondir(tmp_dir) -#> [1] "/tmp/RtmplgXhu5/jsondir" +#> [1] "/tmp/Rtmpvcn05j/jsondir" ## ------------------------------------------------ ## Method `Reporter$from_jsondir` @@ -1211,27 +849,25 @@

Examplesreporter <- Reporter$new() tmp_dir <- file.path(tempdir(), "jsondir") dir.create(tmp_dir) -#> Warning: '/tmp/RtmplgXhu5/jsondir' already exists +#> Warning: '/tmp/Rtmpvcn05j/jsondir' already exists unlink(list.files(tmp_dir, recursive = TRUE)) reporter$to_jsondir(tmp_dir) -#> [1] "/tmp/RtmplgXhu5/jsondir" +#> [1] "/tmp/Rtmpvcn05j/jsondir" reporter$from_jsondir(tmp_dir)

-
+

teal.reporter is a part of the NEST and pharmaverse.

-
-
+
+ + - - diff --git a/main/reference/TableBlock.html b/main/reference/TableBlock.html index ffb191df..3c0835ba 100644 --- a/main/reference/TableBlock.html +++ b/main/reference/TableBlock.html @@ -1,25 +1,9 @@ - - - - - - -TableBlock — TableBlock • teal.reporter - - - - - -TableBlock — TableBlock • teal.reporter - - - - - +document-ready format (e.g., flextable) for inclusion in reports."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -99,153 +58,91 @@

TableBlock

-

Super classes -

+

Super classes

teal.reporter::ContentBlock -> teal.reporter::FileBlock -> TableBlock

-

Methods -

+

Methods

-

Inherited methods

Inherited methods

-
-
-

Method new() -

-

Initialize a TableBlock object.

-
-

Usage -

-

-
-
TableBlock$new(table)
-

-
+


+

Method new()

+

Initialize a TableBlock object.

+

Usage

+

TableBlock$new(table)

-

Arguments -

-

-
-
-
table
+

Arguments

+

table

(data.frame or rtables or TableTree or ElementaryTable or listing_df) a table assigned to this TableBlock

-
-

-
+

-

Returns -

+

Returns

Object of class TableBlock, invisibly.

-
-

-
-
-

Method set_content() -

-

Sets content of this TableBlock.

-
-

Usage -

-

-
-
TableBlock$set_content(content)
-

-
+


+

Method set_content()

+

Sets content of this TableBlock.

+

Usage

+

TableBlock$set_content(content)

-

Arguments -

-

-
-
-
content
+

Arguments

+

content

(data.frame or rtables or TableTree or ElementaryTable or listing_df) a table assigned to this TableBlock

-
-

-
+

-

Details -

+

Details

Raises error if argument is not a table-like object.

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
TableBlock <- getFromNamespace("TableBlock", "teal.reporter")
+

Examples

+

TableBlock <- getFromNamespace("TableBlock", "teal.reporter")
 block <- TableBlock$new()
 block$set_content(iris)
-
-

-
+

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
TableBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

TableBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -253,8 +150,7 @@

Arguments -

Examples -

+

Examples


 ## ------------------------------------------------
 ## Method `TableBlock$set_content`
@@ -267,19 +163,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/TextBlock.html b/main/reference/TextBlock.html index 4fc145ed..730f64f7 100644 --- a/main/reference/TextBlock.html +++ b/main/reference/TextBlock.html @@ -1,25 +1,9 @@ - - - - - - -TextBlock — TextBlock • teal.reporter - - - - - -TextBlock — TextBlock • teal.reporter - - - - - +such as headers or verbatim text, in the report content."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -99,54 +58,34 @@

TextBlock

-

Super class -

+

Super class

teal.reporter::ContentBlock -> TextBlock

Inherited methods

-
-
-

Method new() -

-

Initialize a TextBlock object.

-
-

Usage -

-

-
-
TextBlock$new(content = character(0), style = private$styles[1])
-

-
+


+

Method new()

+

Initialize a TextBlock object.

+

Usage

+

TextBlock$new(content = character(0), style = private$styles[1])

-

Arguments -

-

-
-
-
content
+

Arguments

+

content

(character) a string assigned to this TextBlock

@@ -154,279 +93,161 @@

Arguments, "header2", "header3" "verbatim"

-

-

-
+

-

Details -

+

Details

Constructs a TextBlock object with no content and the default style.

-

Returns -

+

Returns

Object of class TextBlock, invisibly.

-

Examples -

-

-
-
TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
+

Examples

+

TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
 block <- TextBlock$new()
-
-

-
+

-
-

-
-
-

Method set_style() -

-

Sets the style of this TextBlock.

-
-

Usage -

-

-
-
TextBlock$set_style(style)
-

-
+


+

Method set_style()

+

Sets the style of this TextBlock.

+

Usage

+

TextBlock$set_style(style)

-

Arguments -

-

-
-
-
style
+

Arguments

+

style

(character(1)) one of: "default", "header2", "header3" "verbatim"

-
-

-
+

-

Details -

+

Details

The style has bearing on the rendering of this block.

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
+

Examples

+

TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
 block <- TextBlock$new()
 block$set_style("header2")
-
-

-
+

-
-

-
-
-

Method get_style() -

-

Get the style of this TextBlock.

-
-

Usage -

-

-
-
TextBlock$get_style()
-

-
+


+

Method get_style()

+

Get the style of this TextBlock.

+

Usage

+

TextBlock$get_style()

-

Returns -

+

Returns

character(1) the style of this TextBlock.

-

Examples -

-

-
-
TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
+

Examples

+

TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
 block <- TextBlock$new()
 block$get_style()
-
-

-
+

-
-

-
-
-

Method get_available_styles() -

-

Get available an array of styles available to this TextBlock.

-
-

Usage -

-

-
-
TextBlock$get_available_styles()
-

-
+


+

Method get_available_styles()

+

Get available an array of styles available to this TextBlock.

+

Usage

+

TextBlock$get_available_styles()

-

Returns -

+

Returns

A character array of styles.

-

Examples -

-

-
-
TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
+

Examples

+

TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
 block <- TextBlock$new()
 block$get_available_styles()
-
-

-
+

-
-

-
-
-

Method from_list() -

-

Create the TextBlock from a list.

-
-

Usage -

-

-
-
TextBlock$from_list(x)
-

-
+


+

Method from_list()

+

Create the TextBlock from a list.

+

Usage

+

TextBlock$from_list(x)

-

Arguments -

-

-
-
-
x
+

Arguments

+

x

(named list) with two fields text and style. Use the get_available_styles method to get all possible styles.

-
-

-
+

-

Returns -

+

Returns

self, invisibly.

-

Examples -

-

-
-
TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
+

Examples

+

TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
 block <- TextBlock$new()
 block$from_list(list(text = "sth", style = "default"))
-
-

-
+

-
-

-
-
-

Method to_list() -

-

Convert the TextBlock to a list.

-
-

Usage -

-

-
-
TextBlock$to_list()
-

-
+


+

Method to_list()

+

Convert the TextBlock to a list.

+

Usage

+

TextBlock$to_list()

-

Returns -

+

Returns

named list with a text and style.

-

Examples -

-

-
-
TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
+

Examples

+

TextBlock <- getFromNamespace("TextBlock", "teal.reporter")
 block <- TextBlock$new()
 block$to_list()
-
-

-
+

-
-

-
-
-

Method clone() -

-

The objects of this class are cloneable with this method.

-
-

Usage -

-

-
-
TextBlock$clone(deep = FALSE)
-

-
+


+

Method clone()

+

The objects of this class are cloneable with this method.

+

Usage

+

TextBlock$clone(deep = FALSE)

-

Arguments -

-

-
-
-
deep
+

Arguments

+

deep

Whether to make a deep clone.

-
-

-
+

@@ -434,8 +255,7 @@

Arguments -

Examples -

+

Examples


 ## ------------------------------------------------
 ## Method `TextBlock$new`
@@ -500,19 +320,17 @@ 

Examples -

+
-
+
+ + - - diff --git a/main/reference/add_card_button.html b/main/reference/add_card_button.html index d17ee230..820ec648 100644 --- a/main/reference/add_card_button.html +++ b/main/reference/add_card_button.html @@ -1,25 +1,9 @@ - - - - - - -Add card button module — add_card_button • teal.reporter - - - - - - - - - - - +For more details see the vignette: vignette("simpleReporter", "teal.reporter").'> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+
@@ -98,85 +57,67 @@

Add card button module

-

Usage -

+

Usage

add_card_button_ui(id)
 
 add_card_button_srv(id, reporter, card_fun)
-

Arguments -

+

Arguments

-
-
id -
+
id

(character(1)) this shiny module's id.

-
reporter -
+
reporter

(Reporter) instance.

-
card_fun -
+
card_fun

(function) which returns a ReportCard instance. See Details.

-
-
+
-

Value -

+

Value

NULL.

-

Details -

-

The card_fun function is designed to create a new ReportCard instance and optionally customize it:

-
    -
  • The card parameter allows for specifying a custom or default ReportCard instance.

  • +

    Details

    +

    The card_fun function is designed to create a new ReportCard instance and optionally customize it:

    • The card parameter allows for specifying a custom or default ReportCard instance.

    • Use the comment parameter to add a comment to the card via card$append_text() - if card_fun does not have the comment parameter, then comment from Add Card UI module will be added at the end of the content of the card.

    • The label parameter enables customization of the card's name and its content through card$append_text()- if card_fun does not have the label parameter, then card name will be set to the name passed in Add Card UI module, but no text will be added to the content of the card.

    • -
    -

    This module supports using a subclass of ReportCard for added flexibility. +

This module supports using a subclass of ReportCard for added flexibility. A subclass instance should be passed as the default value of the card argument in the card_fun function. See below:

-

-
-
CustomReportCard <- R6::R6Class(
+

CustomReportCard <- R6::R6Class(
   classname = "CustomReportCard",
   inherit = teal.reporter::ReportCard
 )
 
 custom_function <- function(card = CustomReportCard$new()) {
   card
-}
-

-
+}

-
+

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/as_yaml_auto.html b/main/reference/as_yaml_auto.html index 5b68083a..7ac584ad 100644 --- a/main/reference/as_yaml_auto.html +++ b/main/reference/as_yaml_auto.html @@ -1,25 +1,9 @@ - - - - - - -Parse a named list to yaml header for an Rmd file — as_yaml_auto • teal.reporter - - - - - -Parse a named list to yaml header for an Rmd file — as_yaml_auto • teal.reporter - - - - - +as defined in the rmarkdown package. This function simplifies the process of generating yaml headers."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -98,8 +57,7 @@

Parse a named list to yaml header for an Rmd file<
-

Usage -

+

Usage

as_yaml_auto(
   input_list,
   as_header = TRUE,
@@ -110,62 +68,50 @@ 

Usage

-

Arguments -

+

Arguments

-
-
input_list -
+
input_list

(named list) non nested with slots names and their values compatible with Rmd yaml header.

-
as_header -
+
as_header

(logical(1)) optionally wrap with result with the internal md_header(), default TRUE.

-
convert_logi -
+
convert_logi

(logical(1)) convert a character values to logical, if they are recognized as quoted yaml logical values , default TRUE.

-
multi_output -
+
multi_output

(logical(1)) multi output slots in the input argument, default FALSE.

-
silent -
+
silent

(logical(1)) suppress messages and warnings, default FALSE.

-
-
+
-

Value -

+

Value

character with rmd_yaml_header class, result of yaml::as.yaml, optionally wrapped with internal md_header().

-

Details -

+

Details

This function processes a non-nested (flat) named list into a yaml header for an Rmd document. It supports all standard Rmd yaml header fields, including author, date, title, subtitle, abstract, keywords, subject, description, category, and lang. Additionally, it handles output field types and arguments as defined in the rmarkdown package.

-

Note -

+

Note

Only non-nested lists are automatically parsed. Nested lists require direct processing with yaml::as.yaml.

-

Examples -

+

Examples

# nested so using yaml::as.yaml directly
 as_yaml_auto(
   list(author = "", output = list(pdf_document = list(toc = TRUE)))
@@ -293,19 +239,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/conv_str_logi.html b/main/reference/conv_str_logi.html index 337bda79..1af7534d 100644 --- a/main/reference/conv_str_logi.html +++ b/main/reference/conv_str_logi.html @@ -1,21 +1,5 @@ - - - - - - -Convert yaml representation of a boolean strings to logical Values — conv_str_logi • teal.reporter - - - - - - - - - - - + +Convert yaml representation of a boolean strings to logical Values — conv_str_logi • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,8 +51,7 @@

Convert yaml representation of a boolean strings to logical Val
-

Usage -

+

Usage

conv_str_logi(
   input,
   name = "",
@@ -104,46 +62,36 @@ 

Usage

-

Arguments -

+

Arguments

-
-
input -
+
input

(character(1))

-
name -
+
name

(charcter(1))

-
pos_logi -
+
pos_logi

(character) vector of yaml values which should be treated as TRUE.

-
neg_logi -
+
neg_logi

(character) vector of yaml values which should be treated as FALSE.

-
silent -
+
silent

(logical(1)) if to suppress the messages and warnings.

-
-
+
-

Value -

+

Value

input argument or the appropriate logical value.

-

Examples -

+

Examples

conv_str_logi <- getFromNamespace("conv_str_logi", "teal.reporter")
 conv_str_logi("TRUE")
 #> [1] TRUE
@@ -160,19 +108,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/download_report_button.html b/main/reference/download_report_button.html index 31b40002..73021755 100644 --- a/main/reference/download_report_button.html +++ b/main/reference/download_report_button.html @@ -1,25 +1,9 @@ - - - - - - -Download report button module — download_report_button • teal.reporter - - - - - - - - - - - +For more information, refer to the vignette: vignette("simpleReporter", "teal.reporter").'> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -98,8 +57,7 @@

Download report button module

-

Usage -

+

Usage

download_report_button_ui(id)
 
 download_report_button_srv(
@@ -114,75 +72,60 @@ 

Usage

-

Arguments -

+

Arguments

-
-
id -
+
id

(character(1)) this shiny module's id.

-
reporter -
+
reporter

(Reporter) instance.

-
global_knitr -
+
global_knitr

(list) of knitr parameters (passed to knitr::opts_chunk$set) for customizing the rendering process.

-
rmd_output -
+
rmd_output

(character) vector with rmarkdown output types, by default all possible pdf_document, html_document, powerpoint_presentation, and word_document. If vector is named then those names will appear in the UI.

-
rmd_yaml_args -
+
rmd_yaml_args

(named list) with Rmd yaml header fields and their default values. This list will result in the custom subset of UI inputs for the download reporter functionality. Default list(author = "NEST", title = "Report", date = Sys.Date(), output = "html_document", toc = FALSE). The list must include at least "output" field. The default value for "output" has to be in the rmd_output argument.

-
-
+
-

Value -

+

Value

NULL.

-

Details -

+

Details

To access the default values for the global_knitr parameter, -use getOption('teal.reporter.global_knitr'). These defaults include:

-
    -
  • echo = TRUE

  • +use getOption('teal.reporter.global_knitr'). These defaults include:

    • echo = TRUE

    • tidy.opts = list(width.cutoff = 60)

    • tidy = TRUE if formatR package is installed, FALSE otherwise

    • -
    -
+ - +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/get_bs_version.html b/main/reference/get_bs_version.html index ab139bdb..b1bd8b31 100644 --- a/main/reference/get_bs_version.html +++ b/main/reference/get_bs_version.html @@ -1,21 +1,5 @@ - - - - - - -Get bootstrap current version — get_bs_version • teal.reporter - - - - - - - - - - - + +Get bootstrap current version — get_bs_version • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,31 +51,27 @@

Get bootstrap current version

-

Usage -

+

Usage

get_bs_version()
-

Note -

+

Note

will work properly mainly inside a tag .renderHook

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/get_yaml_field.html b/main/reference/get_yaml_field.html index f6e18280..379ab508 100644 --- a/main/reference/get_yaml_field.html +++ b/main/reference/get_yaml_field.html @@ -1,23 +1,7 @@ - - - - - - -Extract field from yaml text — get_yaml_field • teal.reporter - - - - - - - - - - - + +Extract field from yaml text — get_yaml_field • teal.reporter Skip to contents @@ -25,7 +9,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -95,49 +54,40 @@

Extract field from yaml text

-

Usage -

+

Usage

get_yaml_field(yaml_text, field_name)
-

Arguments -

+

Arguments

-
-
yaml_text -
+
yaml_text

(rmd_yaml_header or character) vector containing the yaml text.

-
field_name -
+
field_name

(character) the name of the field to extract.

-
-
+
-

Value -

+

Value

If the field is a list, it returns the names of elements in the list; otherwise, it returns the extracted field.

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/index.html b/main/reference/index.html index 5ea3f818..9c4e3d4f 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -1,19 +1,5 @@ - - - - - - -Package index • teal.reporter - - - - - - - - - + +Package index • teal.reporter Skip to contents @@ -21,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -84,201 +45,151 @@

Package index

-

-shiny modules for adding content to reports -

+

shiny modules for adding content to reports

-
-
+
-
-
+
add_card_button_ui() add_card_button_srv() experimental
Add card button module
-
-
-
-

-shiny modules for viewing and downloading reports -

+
+

shiny modules for viewing and downloading reports

-
-
+
-
-
+
reporter_previewer_ui() reporter_previewer_srv() experimental
Report previewer module
-
-
-
+
simple_reporter_ui() simple_reporter_srv() experimental
Simple reporter module
-
-
-
-

Supporting shiny modules -

+
+

Supporting shiny modules

-
-
+
-
-
+
download_report_button_ui() download_report_button_srv() experimental
Download report button module
-
-
-
+
reset_report_button_ui() reset_report_button_srv() experimental
Reset report button module
-
-
-
+
report_load_srv() experimental
-
Server to Load Reporter -
-
-
-
+
Server to Load Reporter
+
report_load_ui() experimental
-
User Interface to Load Reporter -
-
-
-
-

-yaml and rmd utility functions -

+
User Interface to Load Reporter
+
+

yaml and rmd utility functions

-
-
+
-
-
+
as_yaml_auto() experimental
Parse a named list to yaml header for an Rmd file
-
-
-
+
print(<rmd_yaml_header>) experimental
Print method for the yaml_header class
-
-
-
+
rmd_output_arguments() experimental
Get document output arguments from the rmarkdown package
-
-
-
+
rmd_outputs() experimental
Get document output types from the rmarkdown package
-
-
-
-

-R6 classes used inside package -

+
+

R6 classes used inside package

-
-
+
-
-
+
ReportCard experimental
-
-ReportCard: An R6 class for building report elements
-
-
-
+
ReportCard: An R6 class for building report elements
+
Reporter experimental
-
-Reporter: An R6 class for managing report cards
-
-
+
Reporter: An R6 class for managing report cards
+ - +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/md_header.html b/main/reference/md_header.html index ad318a44..cc54f9a6 100644 --- a/main/reference/md_header.html +++ b/main/reference/md_header.html @@ -1,21 +1,5 @@ - - - - - - -Create markdown header from yaml string — md_header • teal.reporter - - - - - - - - - - - + +Create markdown header from yaml string — md_header • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,27 +51,21 @@

Create markdown header from yaml string

-

Usage -

+

Usage

md_header(x)
-

Arguments -

+

Arguments

-
-
x -
+
x

(character) yaml formatted string.

-
-
+
-

Examples -

+

Examples

library(yaml)
 yaml_quoted <- getFromNamespace("yaml_quoted", "teal.reporter")
 yaml <- list(
@@ -127,19 +80,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/panel_item.html b/main/reference/panel_item.html index 4bce9a5f..987e2697 100644 --- a/main/reference/panel_item.html +++ b/main/reference/panel_item.html @@ -1,21 +1,5 @@ - - - - - - -Panel group widget — panel_item • teal.reporter - - - - - - - - - - - + +Panel group widget — panel_item • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,61 +51,50 @@

Panel group widget

-

Usage -

+

Usage

panel_item(title, ..., collapsed = TRUE, input_id = NULL)
-

Arguments -

+

Arguments

-
-
title -
+
title

(character) title of panel

-
... -
+
...

content of panel

-
collapsed -
+
collapsed

(logical, optional) whether to initially collapse panel

-
input_id -
+
input_id

(character, optional) name of the panel item element. If supplied, this will register a shiny input variable that indicates whether the panel item is open or collapsed and is accessed with input$input_id.

-
-
+
-

Value -

+

Value

shiny.tag.

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/print.rmd_yaml_header.html b/main/reference/print.rmd_yaml_header.html index 4c5827a7..4a08e3c1 100644 --- a/main/reference/print.rmd_yaml_header.html +++ b/main/reference/print.rmd_yaml_header.html @@ -1,21 +1,5 @@ - - - - - - -Print method for the yaml_header class — print.rmd_yaml_header • teal.reporter - - - - - - - - - - - + +Print method for the yaml_header class — print.rmd_yaml_header • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,38 +51,30 @@

Print method for the yaml_header class

-

Usage -

+

Usage

# S3 method for class 'rmd_yaml_header'
 print(x, ...)
-

Arguments -

+

Arguments

-
-
x -
+
x

(rmd_yaml_header) class object.

-
... -
+
...

optional text.

-
-
+
-

Value -

+

Value

NULL.

-

Examples -

+

Examples

input <- list(author = "", output = "pdf_document", toc = TRUE, keep_tex = TRUE)
 out <- as_yaml_auto(input)
 out
@@ -145,19 +96,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/report_load_srv.html b/main/reference/report_load_srv.html index a44cabe3..8d21b8db 100644 --- a/main/reference/report_load_srv.html +++ b/main/reference/report_load_srv.html @@ -1,25 +1,9 @@ - - - - - - -Server to Load Reporter — report_load_srv • teal.reporter - - - - - - - - - - - +For more details see the vignette: vignette("simpleReporter", "teal.reporter").'> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -86,8 +45,7 @@
@@ -99,48 +57,39 @@

Server to Load Reporter

-

Usage -

+

Usage

report_load_srv(id, reporter)
-

Arguments -

+

Arguments

-
-
id -
+
id

character(1) this shiny module's id.

-
reporter -
+
reporter

Reporter instance.

-
-
+
-

Value -

+

Value

shiny::moduleServer

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/report_load_ui.html b/main/reference/report_load_ui.html index c928c44d..f4f8fba6 100644 --- a/main/reference/report_load_ui.html +++ b/main/reference/report_load_ui.html @@ -1,25 +1,9 @@ - - - - - - -User Interface to Load Reporter — report_load_ui • teal.reporter - - - - - - - - - - - +For more details see the vignette: vignette("simpleReporter", "teal.reporter").'> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -86,8 +45,7 @@
@@ -99,43 +57,35 @@

User Interface to Load Reporter

-

Usage -

+

Usage

report_load_ui(id)
-

Arguments -

+

Arguments

-
-
id -
+
id

character(1) this shiny module's id.

-
-
+
-

Value -

+

Value

shiny::tagList

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/report_render_and_compress.html b/main/reference/report_render_and_compress.html index affaee39..fa4df8db 100644 --- a/main/reference/report_render_and_compress.html +++ b/main/reference/report_render_and_compress.html @@ -1,21 +1,5 @@ - - - - - - -Render the report — report_render_and_compress • teal.reporter - - - - - - - - - - - + +Render the report — report_render_and_compress • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,8 +51,7 @@

Render the report

-

Usage -

+

Usage

report_render_and_compress(
   reporter,
   input_list,
@@ -103,53 +61,43 @@ 

Usage

-

Arguments -

+

Arguments

-
-
reporter -
+
reporter

(Reporter) instance.

-
input_list -
+
input_list

(list) like shiny input converted to a regular named list.

-
global_knitr -
+
global_knitr

(list) a global knitr parameters, like echo. But if local parameter is set it will have priority.

-
file -
+
file

(character(1)) where to copy the returned directory.

-
-
+
-

Value -

+

Value

file argument, invisibly.

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/reporter_download_inputs.html b/main/reference/reporter_download_inputs.html index 86aa0709..28e268cf 100644 --- a/main/reference/reporter_download_inputs.html +++ b/main/reference/reporter_download_inputs.html @@ -1,21 +1,5 @@ - - - - - - -Get the custom list of UI inputs — reporter_download_inputs • teal.reporter - - - - - - - - - - - + +Get the custom list of UI inputs — reporter_download_inputs • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,19 +51,15 @@

Get the custom list of UI inputs

-

Usage -

+

Usage

reporter_download_inputs(rmd_yaml_args, rmd_output, showrcode, session)
-

Arguments -

+

Arguments

-
-
rmd_yaml_args -
+
rmd_yaml_args

(named list) with Rmd yaml header fields and their default values. This list will result in the custom subset of UI inputs for the download reporter functionality. Default list(author = "NEST", title = "Report", date = Sys.Date(), output = "html_document", toc = FALSE). @@ -112,29 +67,25 @@

Arguments has to be in the rmd_output argument.

-
rmd_output -
+
rmd_output

(character) vector with rmarkdown output types, by default all possible pdf_document, html_document, powerpoint_presentation, and word_document. If vector is named then those names will appear in the UI.

-
-
+ - +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/reporter_previewer.html b/main/reference/reporter_previewer.html index c2b75578..51a26726 100644 --- a/main/reference/reporter_previewer.html +++ b/main/reference/reporter_previewer.html @@ -1,31 +1,15 @@ - - - - - - -Report previewer module — reporter_previewer • teal.reporter - - - - - - - - - - - +For more details see the vignette: vignette("previewerReporter", "teal.reporter").'> Skip to contents @@ -33,7 +17,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -107,8 +66,7 @@

Report previewer module

-

Usage -

+

Usage

reporter_previewer_ui(id)
 
 reporter_previewer_srv(
@@ -124,36 +82,29 @@ 

Usage

-

Arguments -

+

Arguments

-
-
id -
+
id

(character(1)) shiny module instance id.

-
reporter -
+
reporter

(Reporter) instance.

-
global_knitr -
+
global_knitr

(list) of knitr parameters (passed to knitr::opts_chunk$set) for customizing the rendering process.

-
rmd_output -
+
rmd_output

(character) vector with rmarkdown output types, by default all possible pdf_document, html_document, powerpoint_presentation, and word_document. If vector is named then those names will appear in the UI.

-
rmd_yaml_args -
+
rmd_yaml_args

(named list) with Rmd yaml header fields and their default values. This list will result in the custom subset of UI inputs for the download reporter functionality. Default list(author = "NEST", title = "Report", date = Sys.Date(), output = "html_document", toc = FALSE). @@ -161,45 +112,36 @@

Arguments has to be in the rmd_output argument.

-
previewer_buttons -
+
previewer_buttons

(character) set of modules to include with c("download", "load", "reset") possible values and "download" is required. Default c("download", "load", "reset")

-
-
+
-

Value -

+

Value

NULL.

-

Details -

+

Details

To access the default values for the global_knitr parameter, -use getOption('teal.reporter.global_knitr'). These defaults include:

-
    -
  • echo = TRUE

  • +use getOption('teal.reporter.global_knitr'). These defaults include:

    • echo = TRUE

    • tidy.opts = list(width.cutoff = 60)

    • tidy = TRUE if formatR package is installed, FALSE otherwise

    • -
    -
+ - +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/reset_report_button.html b/main/reference/reset_report_button.html index 5639a04f..9fa32f61 100644 --- a/main/reference/reset_report_button.html +++ b/main/reference/reset_report_button.html @@ -1,25 +1,9 @@ - - - - - - -Reset report button module — reset_report_button • teal.reporter - - - - - - - - - - - +For more information, refer to the vignette: vignette("simpleReporter", "teal.reporter").'> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -98,56 +57,46 @@

Reset report button module

-

Usage -

+

Usage

reset_report_button_ui(id, label = NULL)
 
 reset_report_button_srv(id, reporter)
-

Arguments -

+

Arguments

-
-
id -
+
id

(character(1)) shiny module instance id.

-
label -
+
label

(character(1)) label before the icon. By default NULL.

-
reporter -
+
reporter

(Reporter) instance.

-
-
+
-

Value -

+

Value

NULL.

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/rmd_output_arguments.html b/main/reference/rmd_output_arguments.html index e7f41785..b7223267 100644 --- a/main/reference/rmd_output_arguments.html +++ b/main/reference/rmd_output_arguments.html @@ -1,23 +1,7 @@ - - - - - - -Get document output arguments from the rmarkdown package — rmd_output_arguments • teal.reporter - - - - - - - - - - - + +Get document output arguments from the rmarkdown package — rmd_output_arguments • teal.reporter Skip to contents @@ -25,7 +9,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -95,32 +54,25 @@

Get document output arguments from the rmarkdown package

-

Usage -

+

Usage

rmd_output_arguments(output_name, default_values = FALSE)
-

Arguments -

+

Arguments

-
-
output_name -
+
output_name

(character) rmarkdown output name.

-
default_values -
+
default_values

(logical(1)) if to return a default values for each argument.

-
-
+
-

Examples -

+

Examples

rmd_output_arguments("pdf_document")
 #>  [1] "toc"                "toc_depth"          "number_sections"   
 #>  [4] "fig_width"          "fig_height"         "fig_crop"          
@@ -193,19 +145,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/rmd_outputs.html b/main/reference/rmd_outputs.html index 5f7b9fec..17ac82da 100644 --- a/main/reference/rmd_outputs.html +++ b/main/reference/rmd_outputs.html @@ -1,25 +1,9 @@ - - - - - - -Get document output types from the rmarkdown package — rmd_outputs • teal.reporter - - - - - -Get document output types from the rmarkdown package — rmd_outputs • teal.reporter - - - - - +such as pdf_document, html_document, etc."> Skip to contents @@ -27,7 +11,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -98,20 +57,17 @@

Get document output types from the rmarkdown package

-

Usage -

+

Usage

rmd_outputs()
-

Value -

+

Value

character vector.

-

Examples -

+

Examples

rmd_outputs()
 #>  [1] "beamer_presentation"      "context_document"        
 #>  [3] "github_document"          "html_document"           
@@ -124,19 +80,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/simple_reporter.html b/main/reference/simple_reporter.html index 33ee7869..b65e90b1 100644 --- a/main/reference/simple_reporter.html +++ b/main/reference/simple_reporter.html @@ -1,29 +1,13 @@ - - - - - - -Simple reporter module — simple_reporter • teal.reporter - - - - - - - - - - - +For more details see the vignette: vignette("simpleReporter", "teal.reporter").'> Skip to contents @@ -31,7 +15,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -104,8 +63,7 @@

Simple reporter module

-

Usage -

+

Usage

simple_reporter_ui(id)
 
 simple_reporter_srv(
@@ -121,69 +79,54 @@ 

Usage

-

Arguments -

+

Arguments

-
-
id -
+
id

(character(1)) shiny module instance id.

-
reporter -
+
reporter

(Reporter) instance.

-
card_fun -
+
card_fun

(function) which returns a ReportCard instance, the function has a card argument and an optional comment argument.

-
global_knitr -
+
global_knitr

(list) a global knitr parameters for customizing the rendering process.

-
rmd_output -
+
rmd_output

(character) vector with rmarkdown output types, by default all possible pdf_document, html_document, powerpoint_presentation, and word_document. If vector is named then those names will appear in the UI.

-
rmd_yaml_args -
+
rmd_yaml_args

(named list) with Rmd yaml header fields and their default values. This list will result in the custom subset of UI inputs for the download reporter functionality. Default list(author = "NEST", title = "Report", date = Sys.Date(), output = "html_document", toc = FALSE). The list must include at least "output" field. The default value for "output" has to be in the rmd_output argument.

-
-
+
-

Value -

+

Value

NULL.

-

Details -

+

Details

To access the default values for the global_knitr parameter, -use getOption('teal.reporter.global_knitr'). These defaults include:

-
    -
  • echo = TRUE

  • +use getOption('teal.reporter.global_knitr'). These defaults include:

    • echo = TRUE

    • tidy.opts = list(width.cutoff = 60)

    • tidy = TRUE if formatR package is installed, FALSE otherwise

    • -
    -
+
-

Examples -

+

Examples

if (interactive()) {
   library(shiny)
 
@@ -197,19 +140,17 @@ 

Examples -

+
- + + + - - diff --git a/main/reference/split_text_block.html b/main/reference/split_text_block.html index 97ecda99..c70e4200 100644 --- a/main/reference/split_text_block.html +++ b/main/reference/split_text_block.html @@ -1,21 +1,5 @@ - - - - - - -Divide text block into smaller blocks — split_text_block • teal.reporter - - - - - - - - - - - + +Divide text block into smaller blocks — split_text_block • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -92,54 +51,44 @@

Divide text block into smaller blocks

-

Usage -

+

Usage

split_text_block(x, n)
-

Arguments -

+

Arguments

-
-
x -
+
x

(character) string containing the input block of text

-
n -
+
n

(integer) number of lines per block

-
-
+
-

Value -

+

Value

List of character strings with up to n lines in each element.

-

Details -

+

Details

A single character string containing a text block of multiple lines (separated by \n) is split into multiple strings with n or less lines each.

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/teal.reporter-package.html b/main/reference/teal.reporter-package.html index 326f5b8a..6ee66c00 100644 --- a/main/reference/teal.reporter-package.html +++ b/main/reference/teal.reporter-package.html @@ -1,21 +1,5 @@ - - - - - - -Reporting tools for shiny modules. — teal.reporter-package • teal.reporter - - - - - - - - - - - + +Reporting tools for shiny modules. — teal.reporter-package • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -93,51 +52,37 @@

Reporting tools for shiny modules.

-

Author -

+

Author

Maintainer: Dawid Kaledkowski dawid.kaledkowski@roche.com (ORCID)

-

Authors:

-
+ - +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/to_flextable.html b/main/reference/to_flextable.html index 0094fbb1..d59be16a 100644 --- a/main/reference/to_flextable.html +++ b/main/reference/to_flextable.html @@ -1,21 +1,5 @@ - - - - - - -Convert content into a flextable — to_flextable • teal.reporter - - - - - - - - - - - + +Convert content into a flextable — to_flextable • teal.reporter Skip to contents @@ -23,7 +7,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -82,8 +41,7 @@
@@ -93,50 +51,41 @@

Convert content into a flextable

-

Usage -

+

Usage

to_flextable(content)
-

Arguments -

+

Arguments

-
-
content -
+
content

Supported formats: data.frame, rtables, TableTree, ElementaryTable, listing_df

-
-
+
-

Value -

+

Value

flextable.

-

Details -

+

Details

Function merges cells with colspan > 1, aligns columns to the center and row names to the left, indents the row names by 10 times indentation.

- +

teal.reporter is a part of the NEST and pharmaverse.

-
- + + + - - diff --git a/main/reference/yaml_quoted.html b/main/reference/yaml_quoted.html index a2f078b2..e23e32d4 100644 --- a/main/reference/yaml_quoted.html +++ b/main/reference/yaml_quoted.html @@ -1,23 +1,7 @@ - - - - - - -Mark strings for quotation in yaml serialization — yaml_quoted • teal.reporter - - - - - - - - - - - + +Mark strings for quotation in yaml serialization — yaml_quoted • teal.reporter Skip to contents @@ -25,7 +9,7 @@ teal.reporter - 0.3.1.9017 + 0.3.1.9018
part of NESTpharmaverse
+ @@ -95,27 +54,21 @@

Mark strings for quotation in yaml serialization

-

Usage -

+

Usage

yaml_quoted(x)
-

Arguments -

+

Arguments

-
-
x -
+
x

(character)

-
-
+
-

Examples -

+

Examples

library(yaml)
 yaml_quoted <- getFromNamespace("yaml_quoted", "teal.reporter")
 yaml <- list(
@@ -129,19 +82,17 @@ 

Examples -

+
- + + + - - diff --git a/main/search.json b/main/search.json index d327c352..79668a00 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement [INSERT CONTACT METHOD]. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired Mozilla’s code conduct enforcement ladder. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/SECURITY.html","id":"reporting-security-issues","dir":"","previous_headings":"","what":"Reporting Security Issues","title":"Security Policy","text":"believe found security vulnerability repositories organization, please report us coordinated disclosure. Please report security vulnerabilities public GitHub issues, discussions, pull requests. Instead, please send email vulnerability.management[@]roche.com. Please include much information listed can help us better understand resolve issue: type issue (e.g., buffer overflow, SQL injection, cross-site scripting) Full paths source file(s) related manifestation issue location affected source code (tag/branch/commit direct URL) special configuration required reproduce issue Step--step instructions reproduce issue Proof--concept exploit code (possible) Impact issue, including attacker might exploit issue information help us triage report quickly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/SECURITY.html","id":"data-security-standards-dss","dir":"","previous_headings":"","what":"Data Security Standards (DSS)","title":"Security Policy","text":"Please make sure reporting issues form bug, feature, pull request, sensitive information PII, PHI, PCI completely removed text attachments, including pictures videos.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter-blocks-overview.html","id":"overview-of-content-blocks","dir":"Articles","previous_headings":"","what":"Overview of Content Blocks","title":"teal.reporter blocks overview","text":"document serves comprehensive guide various types content blocks available teal.reporter. blocks allow users structure customize reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter-blocks-overview.html","id":"table-content-blocks-in-teal-reporter","dir":"Articles","previous_headings":"","what":"Table: Content Blocks in teal.reporter","title":"teal.reporter blocks overview","text":"following table outlines different blocks can included ReportCard, along descriptions usage examples: blocks form building blocks ReportCard, serving specific function contributes overall layout content report. ReportCard object utilizes append_* methods integrate various blocks TextBlock, PictureBlock, RcodeBlock, TableBlock. following diagram illustrates inheritance relationship different blocks:","code":"%% This is a mermaid diagram, if you see this the plot failed to render. Sorry. classDiagram class ReportCard{ +append_content() +append_text() +append_table() +append_plot() +append_rcode() +append_metadata() } ReportCard <.. FileBlock: utilizes ReportCard <.. ContentBlock: utilizes ReportCard <.. TextBlock: utilizes ReportCard <.. NewpageBlock: utilizes ReportCard <.. RcodeBlock: utilizes ReportCard <.. PictureBlock: utilizes ReportCard <.. TableBlock: utilizes ContentBlock <|-- TextBlock ContentBlock <|-- NewpageBlock ContentBlock <|-- RcodeBlock ContentBlock <|-- FileBlock FileBlock <|-- PictureBlock FileBlock <|-- TableBlock namespace Blocks { class ContentBlock class FileBlock class TextBlock class NewpageBlock class RcodeBlock class PictureBlock class TableBlock } style ContentBlock fill:lightpurple style FileBlock fill: lightgreen style TextBlock fill: pink style NewpageBlock fill: pink style RcodeBlock fill: pink style PictureBlock fill: gold style TableBlock fill:gold style ReportCard fill:lightblue"},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter-blocks-overview.html","id":"global-knitr-options","dir":"Articles","previous_headings":"","what":"Global knitr Options","title":"teal.reporter blocks overview","text":"ensure consistency control rendering markdown elements within reports, teal.reporter adheres following default global knitr options: access default values global_knitr defaults include: * echo: displays code along output (echo = TRUE). * tidy: formats R code readability using formatR package installed (tidy = TRUE), otherwise set FALSE. * width cutoff: sets maximum number characters per line code output (tidy.opts = list(width.cutoff = 60)). can access modify settings follows:","code":"library(teal.reporter) ## getOption(\"teal.reporter.global_knitr\") ## $echo ## [1] TRUE ## ## $tidy.opts ## $tidy.opts$width.cutoff ## [1] 60 ## ## ## $tidy ## [1] TRUE"},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter-blocks-overview.html","id":"example-report-using-multiple-content-blocks","dir":"Articles","previous_headings":"","what":"Example Report Using Multiple Content Blocks","title":"teal.reporter blocks overview","text":"complete example demonstrating create report combining various content blocks:","code":"library(ggplot2) report_card <- ReportCard$new() report_card$append_text(\"Header 2 text\", \"header2\") report_card$append_text(\"A paragraph of default text\") report_card$append_plot( ggplot(airquality, aes(x = Ozone, y = Solar.R)) + geom_line(na.rm = TRUE) ) report_card$append_table(airquality) report_card$append_rcode(\"airquality_new <- airquality\", echo = FALSE) report_card$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) report_card$get_content() ## [[1]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## from_list: function (x) ## get_available_styles: function () ## get_content: function () ## get_style: function () ## initialize: function (content = character(0), style = private$styles[1]) ## set_content: function (content) ## set_style: function (style) ## to_list: function () ## Private: ## content: Header 2 text ## deep_clone: function (name, value) ## style: header2 ## styles: default header2 header3 verbatim ## ## [[2]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## from_list: function (x) ## get_available_styles: function () ## get_content: function () ## get_style: function () ## initialize: function (content = character(0), style = private$styles[1]) ## set_content: function (content) ## set_style: function (style) ## to_list: function () ## Private: ## content: A paragraph of default text ## deep_clone: function (name, value) ## style: default ## styles: default header2 header3 verbatim ## ## [[3]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## finalize: function () ## from_list: function (x, output_dir) ## get_content: function () ## get_dim: function () ## get_title: function () ## initialize: function (plot) ## set_content: function (content) ## set_dim: function (dim) ## set_title: function (title) ## to_list: function (output_dir) ## Private: ## content: /tmp/RtmpPg2udh/file6a627fab36c.png ## deep_clone: function (name, value) ## dim: 800 600 ## supported_plots: ggplot grob trellis Heatmap ## title: ## type: ## ## [[4]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## finalize: function () ## from_list: function (x, output_dir) ## get_content: function () ## initialize: function (table) ## set_content: function (content) ## to_list: function (output_dir) ## Private: ## content: /tmp/RtmpPg2udh/file6a6968a1f.rds ## deep_clone: function (name, value) ## supported_tables: data.frame rtables TableTree ElementaryTable listing_df ## ## [[5]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## from_list: function (x) ## get_available_params: function () ## get_content: function () ## get_params: function () ## initialize: function (content = character(0), ...) ## set_content: function (content) ## set_params: function (params) ## to_list: function () ## Private: ## content: airquality_new <- airquality ## deep_clone: function (name, value) ## params: list"},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with teal.reporter","text":"engaging data analysis within shiny app, users often encounter insights wish capture share, presentations, markdown articles, formats. teal.reporter package simplifies process developers end-users shiny applications. allows easy generation dissemination findings. eliminates need manual copy-pasting writing markdown. teal.reporter provides suite modules objects integrate seamlessly create reports directly shiny apps minimal effort users developers. can done easy adding one reporting tools module:","code":"library(teal.reporter) ## library(shiny) ui <- fluidPage(simple_reporter_ui(\"simple\")) server <- function(input, output, session) { # The bulk of your module logic here create_module_card <- function(card) { card$append_text(\"This is the content of the report from the `simple` module\") } simple_reporter_srv(\"simple\", Reporter$new(), create_module_card) } if (interactive()) shinyApp(ui, server)"},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter.html","id":"basic-usage","dir":"Articles","previous_headings":"Where to next","what":"Basic usage","title":"Getting Started with teal.reporter","text":"basic usage teal.reporter quickest way enhance modules reporting, explore simple reporting setup vignette.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter.html","id":"previewing-a-report","dir":"Articles","previous_headings":"Where to next","what":"Previewing a report","title":"Getting Started with teal.reporter","text":"enable application users preview, customize, reorder reports prior finalization, delve report previewer vignette.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter.html","id":"integration-with-teal","dir":"Articles","previous_headings":"Where to next","what":"Integration with teal","title":"Getting Started with teal.reporter","text":"Discover teal.reporter complements teal framework visiting dedicated integrating reporting teal..","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/articles/teal-reporter.html","id":"more-control","dir":"Articles","previous_headings":"Where to next","what":"More control","title":"Getting Started with teal.reporter","text":"Developers want control reporting process customization layout can benefit learning topics add_card_button,download_report_button reset_report_button offered teal.reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Dawid Kaledkowski. Author, maintainer. Kartikeya Kirar. Author. Marcin Kosinski. Author. Maciej Nasinski. Author. Konrad Pagacz. Author. Mahmoud Hallal. Author. Chendi Liao. Reviewer. Dony Unardi. Reviewer. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Kaledkowski D, Kirar K, Kosinski M, Nasinski M, Pagacz K, Hallal M (2024). teal.reporter: Reporting Tools 'shiny' Modules. R package version 0.3.1.9017, https://insightsengineering.github.io/teal.reporter/main/, https://github.com/insightsengineering/teal.reporter.","code":"@Manual{, title = {teal.reporter: Reporting Tools for 'shiny' Modules}, author = {Dawid Kaledkowski and Kartikeya Kirar and Marcin Kosinski and Maciej Nasinski and Konrad Pagacz and Mahmoud Hallal}, year = {2024}, note = {R package version 0.3.1.9017, https://insightsengineering.github.io/teal.reporter/main/}, url = {https://github.com/insightsengineering/teal.reporter}, }"},{"path":"https://insightsengineering.github.io/teal.reporter/main/index.html","id":"tealreporter","dir":"","previous_headings":"","what":"Reporting Tools for shiny Modules","title":"Reporting Tools for shiny Modules","text":"teal.reporter empowers shiny teal applications seamlessly integrate reporting functionality. Developers, whether working shiny app teal module, define report’s content, teal.reporter takes care rest. package provides: shiny module adding cards (.e. items) report shiny module previewing report -screen ability download zip file containing reports","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Reporting Tools for shiny Modules","text":"Alternatively, might want use development version.","code":"install.packages('teal.reporter') # install.packages(\"pak\") pak::pak(\"insightsengineering/teal.reporter\")"},{"path":"https://insightsengineering.github.io/teal.reporter/main/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Reporting Tools for shiny Modules","text":"understand use package, please refer Getting Started article, provides multiple examples code implementation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/index.html","id":"getting-help","dir":"","previous_headings":"","what":"Getting help","title":"Reporting Tools for shiny Modules","text":"encounter bug feature request, please file issue. questions, discussions, staying date, please use teal channel pharmaverse slack workspace.","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"ContentBlock: A building block for report content — ContentBlock","title":"ContentBlock: A building block for report content — ContentBlock","text":"class represents basic content unit report, text, images, multimedia elements. serves foundation constructing complex report structures.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"ContentBlock: A building block for report content — ContentBlock","text":"ContentBlock$new() ContentBlock$set_content() ContentBlock$get_content() ContentBlock$from_list() ContentBlock$to_list() ContentBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Initialize ContentBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"ContentBlock: A building block for report content — ContentBlock","text":"Returns ContentBlock object content default style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"Object class ContentBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") ContentBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"method-set-content-","dir":"Reference","previous_headings":"","what":"Method set_content()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Sets content ContentBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$set_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ContentBlock: A building block for report content — ContentBlock","text":"content (character(0) character(1)) string file path assigned ContentBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$set_content(\"Base64 encoded picture\")"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"method-get-content-","dir":"Reference","previous_headings":"","what":"Method get_content()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Retrieves content assigned block.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"character string file path assigned ContentBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Create ContentBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$from_list(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"ContentBlock: A building block for report content — ContentBlock","text":"x (named list) two fields text style. Use get_available_styles method get possible styles.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Convert ContentBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"named list text style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"ContentBlock: A building block for report content — ContentBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"ContentBlock: A building block for report content — ContentBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ContentBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"## ------------------------------------------------ ## Method `ContentBlock$new` ## ------------------------------------------------ ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") ContentBlock$new() #> #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_content: function () #> initialize: function () #> set_content: function (content) #> to_list: function () #> Private: #> content: #> deep_clone: function (name, value) ## ------------------------------------------------ ## Method `ContentBlock$set_content` ## ------------------------------------------------ ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$set_content(\"Base64 encoded picture\") ## ------------------------------------------------ ## Method `ContentBlock$get_content` ## ------------------------------------------------ ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$get_content() #> character(0)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"FileBlock — FileBlock","title":"FileBlock — FileBlock","text":"FileBlock manages file-based content report, ensuring appropriate handling content files.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"FileBlock — FileBlock","text":"teal.reporter::ContentBlock -> FileBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"FileBlock — FileBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$initialize() teal.reporter::ContentBlock$set_content()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"FileBlock — FileBlock","text":"FileBlock$finalize() FileBlock$from_list() FileBlock$to_list() FileBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"method-finalize-","dir":"Reference","previous_headings":"","what":"Method finalize()","title":"FileBlock — FileBlock","text":"Finalize FileBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$finalize()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"FileBlock — FileBlock","text":"Removes temporary file created constructor.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"FileBlock — FileBlock","text":"Create FileBlock list. list contain one named field, \"basename\".","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$from_list(x, output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"FileBlock — FileBlock","text":"x (named list) one field \"basename\", name file. output_dir (character) path directory file copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"FileBlock — FileBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"FileBlock — FileBlock","text":"","code":"FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() file_path <- tempfile(fileext = \".png\") saveRDS(iris, file_path) block$from_list(list(basename = basename(file_path)), dirname(file_path))"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"FileBlock — FileBlock","text":"Convert FileBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$to_list(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"FileBlock — FileBlock","text":"output_dir (character) path directory file copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"FileBlock — FileBlock","text":"named list basename file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"FileBlock — FileBlock","text":"","code":"FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() block$to_list(tempdir())"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"FileBlock — FileBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"FileBlock — FileBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/FileBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"FileBlock — FileBlock","text":"","code":"## ------------------------------------------------ ## Method `FileBlock$from_list` ## ------------------------------------------------ FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() file_path <- tempfile(fileext = \".png\") saveRDS(iris, file_path) block$from_list(list(basename = basename(file_path)), dirname(file_path)) ## ------------------------------------------------ ## Method `FileBlock$to_list` ## ------------------------------------------------ FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() block$to_list(tempdir()) #> $basename #> character(0) #>"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"NewpageBlock — NewpageBlock","title":"NewpageBlock — NewpageBlock","text":"ContentBlock subclass represents page break report output.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"NewpageBlock — NewpageBlock","text":"teal.reporter::ContentBlock -> NewpageBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"NewpageBlock — NewpageBlock","text":"teal.reporter::ContentBlock$from_list() teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$set_content() teal.reporter::ContentBlock$to_list()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"NewpageBlock — NewpageBlock","text":"NewpageBlock$new() NewpageBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"NewpageBlock — NewpageBlock","text":"Initialize NewpageBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NewpageBlock — NewpageBlock","text":"","code":"NewpageBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"NewpageBlock — NewpageBlock","text":"Returns NewpageBlock object content default style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"NewpageBlock — NewpageBlock","text":"Object class NewpageBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NewpageBlock — NewpageBlock","text":"","code":"NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") block <- NewpageBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"NewpageBlock — NewpageBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"NewpageBlock — NewpageBlock","text":"","code":"NewpageBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NewpageBlock — NewpageBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/NewpageBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NewpageBlock — NewpageBlock","text":"","code":"## ------------------------------------------------ ## Method `NewpageBlock$new` ## ------------------------------------------------ NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") block <- NewpageBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"PictureBlock — PictureBlock","title":"PictureBlock — PictureBlock","text":"Specialized FileBlock managing picture content reports. designed handle plots packages ggplot2, grid, lattice. can save plots files, set titles specify dimensions.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"super-classes","dir":"Reference","previous_headings":"","what":"Super classes","title":"PictureBlock — PictureBlock","text":"teal.reporter::ContentBlock -> teal.reporter::FileBlock -> PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"PictureBlock — PictureBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::FileBlock$finalize() teal.reporter::FileBlock$from_list() teal.reporter::FileBlock$to_list()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"PictureBlock — PictureBlock","text":"PictureBlock$new() PictureBlock$set_content() PictureBlock$set_title() PictureBlock$get_title() PictureBlock$set_dim() PictureBlock$get_dim() PictureBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"PictureBlock — PictureBlock","text":"Initialize PictureBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$new(plot)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"plot (ggplot grid) picture PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"Object class PictureBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-set-content-","dir":"Reference","previous_headings":"","what":"Method set_content()","title":"PictureBlock — PictureBlock","text":"Sets content PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$set_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"content (ggplot grob trellis) picture PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"PictureBlock — PictureBlock","text":"Raises error argument ggplot, grob trellis plot.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-set-title-","dir":"Reference","previous_headings":"","what":"Method set_title()","title":"PictureBlock — PictureBlock","text":"Sets title PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$set_title(title)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"title (character(1)) string assigned PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"PictureBlock — PictureBlock","text":"Raises error argument character(1).","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_title(\"Title\")"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-get-title-","dir":"Reference","previous_headings":"","what":"Method get_title()","title":"PictureBlock — PictureBlock","text":"Get title PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$get_title()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"content PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_title()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-set-dim-","dir":"Reference","previous_headings":"","what":"Method set_dim()","title":"PictureBlock — PictureBlock","text":"Sets dimensions PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$set_dim(dim)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"dim (numeric(2)) figure dimensions (width height) pixels.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_dim(c(800, 600))"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-get-dim-","dir":"Reference","previous_headings":"","what":"Method get_dim()","title":"PictureBlock — PictureBlock","text":"Get PictureBlock dimensions numeric vector.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$get_dim()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"numeric array 2 numeric values representing width height pixels.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_dim()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"PictureBlock — PictureBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"arguments-4","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/PictureBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"library(ggplot2) library(lattice) PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_content(ggplot(iris)) PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_content(bwplot(1)) PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_content(ggplotGrob(ggplot(iris))) ## ------------------------------------------------ ## Method `PictureBlock$set_title` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_title(\"Title\") ## ------------------------------------------------ ## Method `PictureBlock$get_title` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_title() #> [1] \"\" ## ------------------------------------------------ ## Method `PictureBlock$set_dim` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_dim(c(800, 600)) ## ------------------------------------------------ ## Method `PictureBlock$get_dim` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_dim() #> [1] 800 600"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"RcodeBlock — RcodeBlock","title":"RcodeBlock — RcodeBlock","text":"Specialized ContentBlock designed embed R code reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"RcodeBlock — RcodeBlock","text":"teal.reporter::ContentBlock -> RcodeBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"RcodeBlock — RcodeBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$set_content()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"RcodeBlock — RcodeBlock","text":"RcodeBlock$new() RcodeBlock$set_params() RcodeBlock$get_params() RcodeBlock$get_available_params() RcodeBlock$from_list() RcodeBlock$to_list() RcodeBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"RcodeBlock — RcodeBlock","text":"Initialize RcodeBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$new(content = character(0), ...)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"content (character(1) character(0)) string assigned RcodeBlock ... rmarkdown R chunk parameter value.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"RcodeBlock — RcodeBlock","text":"Returns RcodeBlock object content parameters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"Object class RcodeBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-set-params-","dir":"Reference","previous_headings":"","what":"Method set_params()","title":"RcodeBlock — RcodeBlock","text":"Sets parameters RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$set_params(params)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"params (list) rmarkdown R chunk parameter value.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"RcodeBlock — RcodeBlock","text":"Configures rmarkdown chunk parameters R code block, influencing rendering execution behavior.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$set_params(list(echo = TRUE))"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-get-params-","dir":"Reference","previous_headings":"","what":"Method get_params()","title":"RcodeBlock — RcodeBlock","text":"Get parameters RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$get_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"character parameters RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-get-available-params-","dir":"Reference","previous_headings":"","what":"Method get_available_params()","title":"RcodeBlock — RcodeBlock","text":"Get available array parameters available RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$get_available_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"character array parameters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_available_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"RcodeBlock — RcodeBlock","text":"Create RcodeBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$from_list(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"x (named list) two fields text params. Use get_available_params method get possible parameters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$from_list(list(text = \"sth\", params = list()))"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"RcodeBlock — RcodeBlock","text":"Convert RcodeBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"named list text params.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"RcodeBlock — RcodeBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/RcodeBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"## ------------------------------------------------ ## Method `RcodeBlock$new` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() ## ------------------------------------------------ ## Method `RcodeBlock$set_params` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$set_params(list(echo = TRUE)) ## ------------------------------------------------ ## Method `RcodeBlock$get_params` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_params() #> list() ## ------------------------------------------------ ## Method `RcodeBlock$get_available_params` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_available_params() #> [1] \"eval\" \"echo\" \"results\" \"tidy\" #> [5] \"tidy.opts\" \"collapse\" \"prompt\" \"comment\" #> [9] \"highlight\" \"size\" \"background\" \"strip.white\" #> [13] \"cache\" \"cache.path\" \"cache.vars\" \"cache.lazy\" #> [17] \"dependson\" \"autodep\" \"cache.rebuild\" \"fig.keep\" #> [21] \"fig.show\" \"fig.align\" \"fig.path\" \"dev\" #> [25] \"dev.args\" \"dpi\" \"fig.ext\" \"fig.width\" #> [29] \"fig.height\" \"fig.env\" \"fig.cap\" \"fig.scap\" #> [33] \"fig.lp\" \"fig.subcap\" \"fig.pos\" \"out.width\" #> [37] \"out.height\" \"out.extra\" \"fig.retina\" \"external\" #> [41] \"sanitize\" \"interval\" \"aniopts\" \"warning\" #> [45] \"error\" \"message\" \"render\" \"ref.label\" #> [49] \"child\" \"engine\" \"split\" \"include\" #> [53] \"purl\" ## ------------------------------------------------ ## Method `RcodeBlock$from_list` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$from_list(list(text = \"sth\", params = list())) ## ------------------------------------------------ ## Method `RcodeBlock$to_list` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$to_list() #> $text #> character(0) #> #> $params #> list() #>"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":null,"dir":"Reference","previous_headings":"","what":"Renderer — Renderer","title":"Renderer — Renderer","text":"class rendering reports ContentBlock various formats using rmarkdown. supports TextBlock, PictureBlock, RcodeBlock, NewpageBlock, TableBlock.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"Renderer — Renderer","text":"Renderer$new() Renderer$finalize() Renderer$renderRmd() Renderer$render() Renderer$get_output_dir() Renderer$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"Renderer — Renderer","text":"Initialize Renderer object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Renderer — Renderer","text":"Creates new instance Renderer temporary directory storing report files.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"Object class Renderer, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Renderer — Renderer","text":"","code":"Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") Renderer$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"method-finalize-","dir":"Reference","previous_headings":"","what":"Method finalize()","title":"Renderer — Renderer","text":"Finalizes Renderer object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$finalize()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"method-renderrmd-","dir":"Reference","previous_headings":"","what":"Method renderRmd()","title":"Renderer — Renderer","text":"Getting Rmd text easily rendered later.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$renderRmd( blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\") )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Renderer — Renderer","text":"blocks (list) TextBlock, PictureBlock NewpageBlock objects. yaml_header (character) rmarkdown yaml header. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"Renderer — Renderer","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"Character vector constituting rmarkdown text (yaml header + body), ready rendered.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"method-render-","dir":"Reference","previous_headings":"","what":"Method render()","title":"Renderer — Renderer","text":"Renders Report desired output format compiling rmarkdown file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$render( blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\"), ... )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"Renderer — Renderer","text":"blocks (list) TextBlock, PictureBlock NewpageBlock objects. yaml_header (character) rmarkdown yaml header. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process. ... rmarkdown::render arguments, input output_dir updated.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"details-2","dir":"Reference","previous_headings":"","what":"Details","title":"Renderer — Renderer","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"character path output.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"method-get-output-dir-","dir":"Reference","previous_headings":"","what":"Method get_output_dir()","title":"Renderer — Renderer","text":"Get output_dir field.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$get_output_dir()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"character output_dir field path.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"Renderer — Renderer","text":"","code":"Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\")$new() Renderer$get_output_dir()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"Renderer — Renderer","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"Renderer — Renderer","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Renderer.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Renderer — Renderer","text":"","code":"library(yaml) library(rtables) #> Loading required package: formatters #> #> Attaching package: ‘formatters’ #> The following object is masked from ‘package:base’: #> #> %||% #> Loading required package: magrittr #> #> Attaching package: ‘magrittr’ #> The following objects are masked from ‘package:testthat’: #> #> equals, is_less_than, not #> #> Attaching package: ‘rtables’ #> The following object is masked from ‘package:utils’: #> #> str library(ggplot2) ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) card2$append_rcode(\"2+2\", echo = FALSE) Reporter <- getFromNamespace(\"Reporter\", \"teal.reporter\") reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml_l <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(html_document = list(toc = FALSE)) ) md_header <- getFromNamespace(\"md_header\", \"teal.reporter\") yaml_header <- md_header(as.yaml(yaml_l)) Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") result_path <- Renderer$new()$renderRmd(reporter$get_blocks(), yaml_header) library(yaml) library(ggplot2) ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) card2$append_rcode(\"2+2\", echo = FALSE) Reporter <- getFromNamespace(\"Reporter\", \"teal.reporter\")$new() Reporter$append_cards(list(card1, card2)) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml_l <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(html_document = list(toc = FALSE)) ) md_header <- getFromNamespace(\"md_header\", \"teal.reporter\") yaml_header <- md_header(as.yaml(yaml_l)) Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") result_path <- Renderer$new()$render(Reporter$get_blocks(), yaml_header) ## ------------------------------------------------ ## Method `Renderer$new` ## ------------------------------------------------ Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") Renderer$new() #> #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> get_output_dir: function () #> initialize: function () #> render: function (blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\"), #> renderRmd: function (blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\")) #> Private: #> block2md: function (block) #> output_dir: /tmp/RtmplgXhu5/report_202411271424155990 #> pictureBlock2md: function (block) #> rcodeBlock2md: function (block) #> report_type: NULL #> tableBlock2md: function (block) #> textBlock2md: function (block) ## ------------------------------------------------ ## Method `Renderer$get_output_dir` ## ------------------------------------------------ Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\")$new() Renderer$get_output_dir() #> [1] \"/tmp/RtmplgXhu5/report_202411271424156007\""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":null,"dir":"Reference","previous_headings":"","what":"ReportCard: An R6 class for building report elements — ReportCard","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"R6 class supports creating report card containing text, plot, table metadata blocks can appended rendered form report output shiny app. information various blocks, refer vignette: vignette(\"teal-reporter-blocks-overview\", \"teal.reporter\").","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"ReportCard$new() ReportCard$append_table() ReportCard$append_plot() ReportCard$append_text() ReportCard$append_rcode() ReportCard$append_content() ReportCard$get_content() ReportCard$reset() ReportCard$get_metadata() ReportCard$append_metadata() ReportCard$get_name() ReportCard$set_name() ReportCard$to_list() ReportCard$from_list() ReportCard$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Initialize ReportCard object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Object class ReportCard, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-append-table-","dir":"Reference","previous_headings":"","what":"Method append_table()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends table ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_table(table)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"table (data.frame rtables TableTree ElementaryTable listing_df) can coerced table.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_table(iris)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-append-plot-","dir":"Reference","previous_headings":"","what":"Method append_plot()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends plot ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_plot(plot, dim = NULL)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"plot (ggplot grob trellis) plot object. dim (numeric(2)) width height pixels.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-append-text-","dir":"Reference","previous_headings":"","what":"Method append_text()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends text paragraph ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_text(text, style = TextBlock$new()$get_available_styles()[1])"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"text (character) text content add. style (character(1)) style paragraph. One : default, header, verbatim","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_text(\"A paragraph of default text\")"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-append-rcode-","dir":"Reference","previous_headings":"","what":"Method append_rcode()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends R code chunk ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_rcode(text, ...)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"text (character) R code include. ... Additional rmarkdown parameters formatting R code chunk.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_rcode(\"2+2\", echo = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-append-content-","dir":"Reference","previous_headings":"","what":"Method append_content()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends generic ContentBlock ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-4","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"content (ContentBlock) object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") card <- ReportCard$new()$append_content(NewpageBlock$new())"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-get-content-","dir":"Reference","previous_headings":"","what":"Method get_content()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Get content blocks ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-6","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"list() list TableBlock, TextBlock PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-reset-","dir":"Reference","previous_headings":"","what":"Method reset()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Clears content metadata ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-7","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$reset()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-7","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-get-metadata-","dir":"Reference","previous_headings":"","what":"Method get_metadata()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Get metadata associated ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-8","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-8","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"named list list elements.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-6","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-append-metadata-","dir":"Reference","previous_headings":"","what":"Method append_metadata()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends metadata ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-9","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_metadata(key, value)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-5","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"key (character(1)) string specifying metadata key. value value associated metadata key.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-9","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-get-name-","dir":"Reference","previous_headings":"","what":"Method get_name()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Get name ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-10","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$get_name()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-10","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"character card name.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-7","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$new()$set_name(\"NAME\")$get_name()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-set-name-","dir":"Reference","previous_headings":"","what":"Method set_name()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Set name ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-11","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$set_name(name)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-6","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"name (character(1)) card name.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-11","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"examples-8","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$new()$set_name(\"NAME\")$get_name()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Convert ReportCard list, including content metadata.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-12","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$to_list(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-7","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"output_dir (character) path directory files copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-12","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"(named list) ReportCard representation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Reconstructs ReportCard list representation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-13","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$from_list(card, output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-8","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"card (named list) ReportCard representation. output_dir (character) path directory file copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"returns-13","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"usage-14","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"arguments-9","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/ReportCard.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"library(ggplot2) card <- ReportCard$new()$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. library(ggplot2) card <- ReportCard$new()$append_text(\"Some text\")$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() )$append_text(\"Some text\")$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/RtmplgXhu5/file3981aadf2d2.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> card$get_metadata() #> $lm #> #> Call: #> lm(formula = Ozone ~ Solar.R, data = airquality) #> #> Coefficients: #> (Intercept) Solar.R #> 18.5987 0.1272 #> #> library(ggplot2) card <- ReportCard$new()$append_text(\"Some text\")$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() )$append_text(\"Some text\")$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/RtmplgXhu5/file398396e510f.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> card$to_list(tempdir()) #> $blocks #> $blocks$TextBlock #> $blocks$TextBlock$text #> [1] \"Some text\" #> #> $blocks$TextBlock$style #> [1] \"default\" #> #> #> $blocks$PictureBlock #> $blocks$PictureBlock$basename #> [1] \"file398396e510f.png\" #> #> #> $blocks$TextBlock #> $blocks$TextBlock$text #> [1] \"Some text\" #> #> $blocks$TextBlock$style #> [1] \"default\" #> #> #> #> $metadata #> $metadata$lm #> #> Call: #> lm(formula = Ozone ~ Solar.R, data = airquality) #> #> Coefficients: #> (Intercept) Solar.R #> 18.5987 0.1272 #> #> #> #> $name #> character(0) #> library(ggplot2) card <- ReportCard$new()$append_text(\"Some text\")$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() )$append_text(\"Some text\")$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/RtmplgXhu5/file3986734632c.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> ReportCard$new()$from_list(card$to_list(tempdir()), tempdir()) ## ------------------------------------------------ ## Method `ReportCard$new` ## ------------------------------------------------ card <- ReportCard$new() ## ------------------------------------------------ ## Method `ReportCard$append_table` ## ------------------------------------------------ card <- ReportCard$new()$append_table(iris) ## ------------------------------------------------ ## Method `ReportCard$append_text` ## ------------------------------------------------ card <- ReportCard$new()$append_text(\"A paragraph of default text\") ## ------------------------------------------------ ## Method `ReportCard$append_rcode` ## ------------------------------------------------ card <- ReportCard$new()$append_rcode(\"2+2\", echo = FALSE) ## ------------------------------------------------ ## Method `ReportCard$append_content` ## ------------------------------------------------ NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") card <- ReportCard$new()$append_content(NewpageBlock$new()) ## ------------------------------------------------ ## Method `ReportCard$get_content` ## ------------------------------------------------ card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> ## ------------------------------------------------ ## Method `ReportCard$get_metadata` ## ------------------------------------------------ card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_metadata() #> $rc #> [1] \"a <- 2 + 2\" #> ## ------------------------------------------------ ## Method `ReportCard$get_name` ## ------------------------------------------------ ReportCard$new()$set_name(\"NAME\")$get_name() #> [1] \"NAME\" ## ------------------------------------------------ ## Method `ReportCard$set_name` ## ------------------------------------------------ ReportCard$new()$set_name(\"NAME\")$get_name() #> [1] \"NAME\""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":null,"dir":"Reference","previous_headings":"","what":"Reporter: An R6 class for managing report cards — Reporter","title":"Reporter: An R6 class for managing report cards — Reporter","text":"R6 class designed store manage report cards, facilitating creation, manipulation, serialization report-related data.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Reporter: An R6 class for managing report cards — Reporter","text":"function used shiny reactive context. Report id converting JSON compared currently available one. Report id converting JSON compared currently available one.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reporter$new() Reporter$append_cards() Reporter$get_cards() Reporter$get_blocks() Reporter$reset() Reporter$remove_cards() Reporter$swap_cards() Reporter$get_reactive_add_card() Reporter$get_metadata() Reporter$append_metadata() Reporter$from_reporter() Reporter$to_list() Reporter$from_list() Reporter$to_jsondir() Reporter$from_jsondir() Reporter$set_id() Reporter$get_id() Reporter$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Initialize Reporter object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Object class Reporter, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-append-cards-","dir":"Reference","previous_headings":"","what":"Method append_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Append one ReportCard objects Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$append_cards(cards)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"cards (ReportCard) list objects","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-get-cards-","dir":"Reference","previous_headings":"","what":"Method get_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Retrieves ReportCard objects contained Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_cards()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"(list) ReportCard objects.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-get-blocks-","dir":"Reference","previous_headings":"","what":"Method get_blocks()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Compiles returns content blocks ReportCard Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_blocks(sep = NewpageBlock$new())"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"sep optional separator insert content block. Default NewpageBlock$new()object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"list() list TableBlock, TextBlock, PictureBlock NewpageBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-reset-","dir":"Reference","previous_headings":"","what":"Method reset()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Resets Reporter, removing ReportCard objects metadata.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$reset()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-remove-cards-","dir":"Reference","previous_headings":"","what":"Method remove_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Removes specific ReportCard objects Reporter indices.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$remove_cards(ids = NULL)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"ids (integer(id)) indexes cards","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-swap-cards-","dir":"Reference","previous_headings":"","what":"Method swap_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Swaps positions two ReportCard objects within Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$swap_cards(start, end)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"start (integer) index first card end (integer) index second card","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-6","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-get-reactive-add-card-","dir":"Reference","previous_headings":"","what":"Method get_reactive_add_card()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Gets current value reactive variable adding cards.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-7","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_reactive_add_card()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-7","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"reactive_add_card current numeric value reactive variable.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"library(shiny) isolate(Reporter$new()$get_reactive_add_card())"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-get-metadata-","dir":"Reference","previous_headings":"","what":"Method get_metadata()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Get metadata associated Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-8","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-8","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"named list metadata appended.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-append-metadata-","dir":"Reference","previous_headings":"","what":"Method append_metadata()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Appends metadata Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-9","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$append_metadata(meta)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-4","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"meta (named list) metadata appended.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-9","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-from-reporter-","dir":"Reference","previous_headings":"","what":"Method from_reporter()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reinitializes Reporter instance copying report cards metadata another Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-10","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$from_reporter(reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-5","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"reporter (Reporter) instance copy .","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-10","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"invisibly self","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() reporter$from_reporter(reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Convert Reporter list transfer associated files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-11","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$to_list(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-6","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir (character(1)) path directory files copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-11","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"named list representing Reporter instance, including version information, metadata, report cards.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") dir.create(tmp_dir) reporter$to_list(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reinitializes Reporter list representation associated files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-12","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$from_list(rlist, output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-7","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"rlist (named list) representing Reporter instance. output_dir (character(1)) path directory files copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-12","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-6","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") unlink(tmp_dir, recursive = TRUE) dir.create(tmp_dir) reporter$from_list(reporter$to_list(tmp_dir), tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-to-jsondir-","dir":"Reference","previous_headings":"","what":"Method to_jsondir()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Serializes Reporter JSON file copies associated files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-13","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$to_jsondir(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-8","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir (character(1)) path directory files copied, JSON statics.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-13","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-7","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) reporter$to_jsondir(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-from-jsondir-","dir":"Reference","previous_headings":"","what":"Method from_jsondir()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reinitializes Reporter JSON file files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-14","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$from_jsondir(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-9","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir (character(1)) path directory files, JSON statics.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-14","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"examples-8","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) unlink(list.files(tmp_dir, recursive = TRUE)) reporter$to_jsondir(tmp_dir) reporter$from_jsondir(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-set-id-","dir":"Reference","previous_headings":"","what":"Method set_id()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Set Reporter id Optionally add id Reporter compared rebuilt list. id added downloaded file name.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-15","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$set_id(id)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-10","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"id (character(1)) Report id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-15","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-get-id-","dir":"Reference","previous_headings":"","what":"Method get_id()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Get Reporter id","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-16","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_id()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"returns-16","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"character(1) Reporter id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"usage-17","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"arguments-11","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/Reporter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"library(ggplot2) library(rtables) card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\", \"header2\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) library(ggplot2) library(rtables) card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\", \"header2\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) reporter$get_cards() #> [[1]] #> #> Public: #> append_content: function (content) #> append_metadata: function (key, value) #> append_plot: function (plot, dim = NULL) #> append_rcode: function (text, ...) #> append_table: function (table) #> append_text: function (text, style = TextBlock$new()$get_available_styles()[1]) #> clone: function (deep = FALSE) #> from_list: function (card, output_dir) #> get_content: function () #> get_metadata: function () #> get_name: function () #> initialize: function () #> reset: function () #> set_name: function (name) #> to_list: function (output_dir) #> Private: #> content: list #> deep_clone: function (name, value) #> dispatch_block: function (block_class) #> metadata: list #> name: #> #> [[2]] #> #> Public: #> append_content: function (content) #> append_metadata: function (key, value) #> append_plot: function (plot, dim = NULL) #> append_rcode: function (text, ...) #> append_table: function (table) #> append_text: function (text, style = TextBlock$new()$get_available_styles()[1]) #> clone: function (deep = FALSE) #> from_list: function (card, output_dir) #> get_content: function () #> get_metadata: function () #> get_name: function () #> initialize: function () #> reset: function () #> set_name: function (name) #> to_list: function (output_dir) #> Private: #> content: list #> deep_clone: function (name, value) #> dispatch_block: function (block_class) #> metadata: list #> name: #> library(ggplot2) library(rtables) card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\", \"header2\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) reporter$get_blocks() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Header 2 text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: A paragraph of default text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/RtmplgXhu5/file398a46506d.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[4]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_content: function () #> initialize: function () #> set_content: function (content) #> to_list: function () #> Private: #> content: #> \\newpage #> #> deep_clone: function (name, value) #> #> [[5]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Header 2 text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[6]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: A paragraph of default text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[7]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> initialize: function (table) #> set_content: function (content) #> to_list: function (output_dir) #> Private: #> content: /tmp/RtmplgXhu5/file3984ae010cb.rds #> deep_clone: function (name, value) #> supported_tables: data.frame rtables TableTree ElementaryTable listing_df #> #> [[8]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> initialize: function (table) #> set_content: function (content) #> to_list: function (output_dir) #> Private: #> content: /tmp/RtmplgXhu5/file39844e61db.rds #> deep_clone: function (name, value) #> supported_tables: data.frame rtables TableTree ElementaryTable listing_df #> ## ------------------------------------------------ ## Method `Reporter$new` ## ------------------------------------------------ reporter <- Reporter$new() ## ------------------------------------------------ ## Method `Reporter$get_reactive_add_card` ## ------------------------------------------------ library(shiny) isolate(Reporter$new()$get_reactive_add_card()) #> [1] 0 ## ------------------------------------------------ ## Method `Reporter$get_metadata` ## ------------------------------------------------ reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata() #> $sth #> [1] \"sth\" #> ## ------------------------------------------------ ## Method `Reporter$append_metadata` ## ------------------------------------------------ reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata() #> $sth #> [1] \"sth\" #> ## ------------------------------------------------ ## Method `Reporter$from_reporter` ## ------------------------------------------------ reporter <- Reporter$new() reporter$from_reporter(reporter) ## ------------------------------------------------ ## Method `Reporter$to_list` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") dir.create(tmp_dir) reporter$to_list(tmp_dir) #> $name #> [1] \"teal Reporter\" #> #> $version #> [1] \"1\" #> #> $id #> [1] \"\" #> #> $cards #> list() #> #> $metadata #> list() #> ## ------------------------------------------------ ## Method `Reporter$from_list` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") unlink(tmp_dir, recursive = TRUE) dir.create(tmp_dir) reporter$from_list(reporter$to_list(tmp_dir), tmp_dir) ## ------------------------------------------------ ## Method `Reporter$to_jsondir` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) reporter$to_jsondir(tmp_dir) #> [1] \"/tmp/RtmplgXhu5/jsondir\" ## ------------------------------------------------ ## Method `Reporter$from_jsondir` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) #> Warning: '/tmp/RtmplgXhu5/jsondir' already exists unlink(list.files(tmp_dir, recursive = TRUE)) reporter$to_jsondir(tmp_dir) #> [1] \"/tmp/RtmplgXhu5/jsondir\" reporter$from_jsondir(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"TableBlock — TableBlock","title":"TableBlock — TableBlock","text":"Specialized FileBlock managing table content reports. designed handle various table formats, converting consistent, document-ready format (e.g., flextable) inclusion reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"super-classes","dir":"Reference","previous_headings":"","what":"Super classes","title":"TableBlock — TableBlock","text":"teal.reporter::ContentBlock -> teal.reporter::FileBlock -> TableBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"TableBlock — TableBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::FileBlock$finalize() teal.reporter::FileBlock$from_list() teal.reporter::FileBlock$to_list()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"TableBlock — TableBlock","text":"TableBlock$new() TableBlock$set_content() TableBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"TableBlock — TableBlock","text":"Initialize TableBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"TableBlock — TableBlock","text":"","code":"TableBlock$new(table)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"TableBlock — TableBlock","text":"table (data.frame rtables TableTree ElementaryTable listing_df) table assigned TableBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"TableBlock — TableBlock","text":"Object class TableBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"method-set-content-","dir":"Reference","previous_headings":"","what":"Method set_content()","title":"TableBlock — TableBlock","text":"Sets content TableBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"TableBlock — TableBlock","text":"","code":"TableBlock$set_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"TableBlock — TableBlock","text":"content (data.frame rtables TableTree ElementaryTable listing_df) table assigned TableBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"TableBlock — TableBlock","text":"Raises error argument table-like object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"TableBlock — TableBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TableBlock — TableBlock","text":"","code":"TableBlock <- getFromNamespace(\"TableBlock\", \"teal.reporter\") block <- TableBlock$new() block$set_content(iris)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"TableBlock — TableBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"TableBlock — TableBlock","text":"","code":"TableBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"TableBlock — TableBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TableBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TableBlock — TableBlock","text":"","code":"## ------------------------------------------------ ## Method `TableBlock$set_content` ## ------------------------------------------------ TableBlock <- getFromNamespace(\"TableBlock\", \"teal.reporter\") block <- TableBlock$new() block$set_content(iris)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"TextBlock — TextBlock","title":"TextBlock — TextBlock","text":"Specialized ContentBlock embedding styled text within reports. supports multiple styling options accommodate various text roles, headers verbatim text, report content.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"TextBlock — TextBlock","text":"teal.reporter::ContentBlock -> TextBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"TextBlock — TextBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$set_content()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"TextBlock — TextBlock","text":"TextBlock$new() TextBlock$set_style() TextBlock$get_style() TextBlock$get_available_styles() TextBlock$from_list() TextBlock$to_list() TextBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"TextBlock — TextBlock","text":"Initialize TextBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$new(content = character(0), style = private$styles[1])"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"content (character) string assigned TextBlock style (character(1)) one : \"default\", \"header2\", \"header3\" \"verbatim\"","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"TextBlock — TextBlock","text":"Constructs TextBlock object content default style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"Object class TextBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-set-style-","dir":"Reference","previous_headings":"","what":"Method set_style()","title":"TextBlock — TextBlock","text":"Sets style TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$set_style(style)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"style (character(1)) one : \"default\", \"header2\", \"header3\" \"verbatim\"","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"TextBlock — TextBlock","text":"style bearing rendering block.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$set_style(\"header2\")"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-get-style-","dir":"Reference","previous_headings":"","what":"Method get_style()","title":"TextBlock — TextBlock","text":"Get style TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$get_style()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"character(1) style TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_style()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-get-available-styles-","dir":"Reference","previous_headings":"","what":"Method get_available_styles()","title":"TextBlock — TextBlock","text":"Get available array styles available TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$get_available_styles()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"character array styles.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_available_styles()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"TextBlock — TextBlock","text":"Create TextBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$from_list(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"x (named list) two fields text style. Use get_available_styles method get possible styles.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$from_list(list(text = \"sth\", style = \"default\"))"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"TextBlock — TextBlock","text":"Convert TextBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"named list text style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"TextBlock — TextBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/TextBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"## ------------------------------------------------ ## Method `TextBlock$new` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() ## ------------------------------------------------ ## Method `TextBlock$set_style` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$set_style(\"header2\") ## ------------------------------------------------ ## Method `TextBlock$get_style` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_style() #> [1] \"default\" ## ------------------------------------------------ ## Method `TextBlock$get_available_styles` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_available_styles() #> [1] \"default\" \"header2\" \"header3\" \"verbatim\" ## ------------------------------------------------ ## Method `TextBlock$from_list` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$from_list(list(text = \"sth\", style = \"default\")) ## ------------------------------------------------ ## Method `TextBlock$to_list` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$to_list() #> $text #> character(0) #> #> $style #> [1] \"default\" #>"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/add_card_button.html","id":null,"dir":"Reference","previous_headings":"","what":"Add card button module — add_card_button","title":"Add card button module — add_card_button","text":"Provides button add views/cards report. details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/add_card_button.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Add card button module — add_card_button","text":"","code":"add_card_button_ui(id) add_card_button_srv(id, reporter, card_fun)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/add_card_button.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Add card button module — add_card_button","text":"id (character(1)) shiny module's id. reporter (Reporter) instance. card_fun (function) returns ReportCard instance. See Details.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/add_card_button.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Add card button module — add_card_button","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/add_card_button.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Add card button module — add_card_button","text":"card_fun function designed create new ReportCard instance optionally customize : card parameter allows specifying custom default ReportCard instance. Use comment parameter add comment card via card$append_text() - card_fun comment parameter, comment Add Card UI module added end content card. label parameter enables customization card's name content card$append_text()- card_fun label parameter, card name set name passed Add Card UI module, text added content card. module supports using subclass ReportCard added flexibility. subclass instance passed default value card argument card_fun function. See :","code":"CustomReportCard <- R6::R6Class( classname = \"CustomReportCard\", inherit = teal.reporter::ReportCard ) custom_function <- function(card = CustomReportCard$new()) { card }"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":null,"dir":"Reference","previous_headings":"","what":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"Converts named list yaml header Rmd, handling output types arguments defined rmarkdown package. function simplifies process generating yaml headers.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"","code":"as_yaml_auto( input_list, as_header = TRUE, convert_logi = TRUE, multi_output = FALSE, silent = FALSE )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"input_list (named list) non nested slots names values compatible Rmd yaml header. as_header (logical(1)) optionally wrap result internal md_header(), default TRUE. convert_logi (logical(1)) convert character values logical, recognized quoted yaml logical values , default TRUE. multi_output (logical(1)) multi output slots input argument, default FALSE. silent (logical(1)) suppress messages warnings, default FALSE.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"character rmd_yaml_header class, result yaml::.yaml, optionally wrapped internal md_header().","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"function processes non-nested (flat) named list yaml header Rmd document. supports standard Rmd yaml header fields, including author, date, title, subtitle, abstract, keywords, subject, description, category, lang. Additionally, handles output field types arguments defined rmarkdown package.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"non-nested lists automatically parsed. Nested lists require direct processing yaml::.yaml.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/as_yaml_auto.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"","code":"# nested so using yaml::as.yaml directly as_yaml_auto( list(author = \"\", output = list(pdf_document = list(toc = TRUE))) ) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> --- # auto parsing for a flat list, like shiny input input <- list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = TRUE) as_yaml_auto(input) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = \"TRUE\")) #> The 'TRUE' value should be a logical, so it is automatically converted. #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(list( author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = TRUE, wrong = 2 )) #> Warning: Not recognized and skipped arguments: wrong #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = 2), silent = TRUE ) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: 2.0 #> --- input <- list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = \"True\") as_yaml_auto(input) #> The 'True' value should be a logical, so it is automatically converted. #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(input, convert_logi = TRUE, silent = TRUE) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(input, silent = TRUE) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(input, convert_logi = FALSE, silent = TRUE) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: 'True' #> --- as_yaml_auto( list( author = \"\", output = \"pdf_document\", output = \"html_document\", toc = TRUE, keep_tex = TRUE ), multi_output = TRUE ) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> html_document: #> toc: yes #> --- as_yaml_auto( list( author = \"\", output = \"pdf_document\", output = \"html_document\", toc = \"True\", keep_tex = TRUE ), multi_output = TRUE ) #> The 'True' value should be a logical, so it is automatically converted. #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> html_document: #> toc: yes #> ---"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/conv_str_logi.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"Converts single character string representing yaml boolean value logical value R.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/conv_str_logi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"","code":"conv_str_logi( input, name = \"\", pos_logi = c(\"TRUE\", \"true\", \"True\", \"yes\", \"y\", \"Y\", \"on\"), neg_logi = c(\"FALSE\", \"false\", \"False\", \"no\", \"n\", \"N\", \"off\"), silent = TRUE )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/conv_str_logi.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"input (character(1)) name (charcter(1)) pos_logi (character) vector yaml values treated TRUE. neg_logi (character) vector yaml values treated FALSE. silent (logical(1)) suppress messages warnings.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/conv_str_logi.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"input argument appropriate logical value.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/conv_str_logi.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"","code":"conv_str_logi <- getFromNamespace(\"conv_str_logi\", \"teal.reporter\") conv_str_logi(\"TRUE\") #> [1] TRUE conv_str_logi(\"True\") #> [1] TRUE conv_str_logi(\"off\") #> [1] FALSE conv_str_logi(\"n\") #> [1] FALSE conv_str_logi(\"sth\") #> [1] \"sth\""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/download_report_button.html","id":null,"dir":"Reference","previous_headings":"","what":"Download report button module — download_report_button","title":"Download report button module — download_report_button","text":"Provides button triggers downloading report. information, refer vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/download_report_button.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download report button module — download_report_button","text":"","code":"download_report_button_ui(id) download_report_button_srv( id, reporter, global_knitr = getOption(\"teal.reporter.global_knitr\"), rmd_output = c(html = \"html_document\", pdf = \"pdf_document\", powerpoint = \"powerpoint_presentation\", word = \"word_document\"), rmd_yaml_args = list(author = \"NEST\", title = \"Report\", date = as.character(Sys.Date()), output = \"html_document\", toc = FALSE) )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/download_report_button.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download report button module — download_report_button","text":"id (character(1)) shiny module's id. reporter (Reporter) instance. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI. rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/download_report_button.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download report button module — download_report_button","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/download_report_button.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Download report button module — download_report_button","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_bs_version.html","id":null,"dir":"Reference","previous_headings":"","what":"Get bootstrap current version — get_bs_version","title":"Get bootstrap current version — get_bs_version","text":"Get bootstrap current version","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_bs_version.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get bootstrap current version — get_bs_version","text":"","code":"get_bs_version()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_bs_version.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Get bootstrap current version — get_bs_version","text":"work properly mainly inside tag .renderHook","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_yaml_field.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract field from yaml text — get_yaml_field","title":"Extract field from yaml text — get_yaml_field","text":"Parses yaml text, extracting specified field. Returns list names list; otherwise, field .","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_yaml_field.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract field from yaml text — get_yaml_field","text":"","code":"get_yaml_field(yaml_text, field_name)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_yaml_field.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract field from yaml text — get_yaml_field","text":"yaml_text (rmd_yaml_header character) vector containing yaml text. field_name (character) name field extract.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/get_yaml_field.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract field from yaml text — get_yaml_field","text":"field list, returns names elements list; otherwise, returns extracted field.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/md_header.html","id":null,"dir":"Reference","previous_headings":"","what":"Create markdown header from yaml string — md_header","title":"Create markdown header from yaml string — md_header","text":"function wraps yaml-formatted string Markdown header delimiters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/md_header.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create markdown header from yaml string — md_header","text":"","code":"md_header(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/md_header.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create markdown header from yaml string — md_header","text":"x (character) yaml formatted string.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/md_header.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create markdown header from yaml string — md_header","text":"","code":"library(yaml) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(pdf_document = list(keep_tex = TRUE)) ) md_header <- getFromNamespace(\"md_header\", \"teal.reporter\") md_header(as.yaml(yaml)) #> [1] \"---\\nauthor: \\\"NEST\\\"\\ntitle: \\\"Report\\\"\\ndate: \\\"07/04/2019\\\"\\noutput:\\n pdf_document:\\n keep_tex: yes\\n---\\n\""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/panel_item.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Panel group widget — panel_item","text":"","code":"panel_item(title, ..., collapsed = TRUE, input_id = NULL)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/panel_item.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Panel group widget — panel_item","text":"title (character) title panel ... content panel collapsed (logical, optional) whether initially collapse panel input_id (character, optional) name panel item element. supplied, register shiny input variable indicates whether panel item open collapsed accessed input$input_id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/panel_item.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Panel group widget — panel_item","text":"shiny.tag.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/print.rmd_yaml_header.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"","code":"# S3 method for class 'rmd_yaml_header' print(x, ...)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/print.rmd_yaml_header.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"x (rmd_yaml_header) class object. ... optional text.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/print.rmd_yaml_header.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/print.rmd_yaml_header.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"","code":"input <- list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = TRUE) out <- as_yaml_auto(input) out #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- print(out) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> ---"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_srv.html","id":null,"dir":"Reference","previous_headings":"","what":"Server to Load Reporter — report_load_srv","title":"Server to Load Reporter — report_load_srv","text":"Server load ReporterCard(s) Reporter details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_srv.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Server to Load Reporter — report_load_srv","text":"","code":"report_load_srv(id, reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_srv.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Server to Load Reporter — report_load_srv","text":"id character(1) shiny module's id. reporter Reporter instance.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_srv.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Server to Load Reporter — report_load_srv","text":"shiny::moduleServer","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_ui.html","id":null,"dir":"Reference","previous_headings":"","what":"User Interface to Load Reporter — report_load_ui","title":"User Interface to Load Reporter — report_load_ui","text":"Button upload ReporterCard(s) Reporter. details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_ui.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"User Interface to Load Reporter — report_load_ui","text":"","code":"report_load_ui(id)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_ui.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"User Interface to Load Reporter — report_load_ui","text":"id character(1) shiny module's id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_load_ui.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"User Interface to Load Reporter — report_load_ui","text":"shiny::tagList","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_render_and_compress.html","id":null,"dir":"Reference","previous_headings":"","what":"Render the report — report_render_and_compress","title":"Render the report — report_render_and_compress","text":"Render report zip created directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_render_and_compress.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Render the report — report_render_and_compress","text":"","code":"report_render_and_compress( reporter, input_list, global_knitr, file = tempdir() )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_render_and_compress.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Render the report — report_render_and_compress","text":"reporter (Reporter) instance. input_list (list) like shiny input converted regular named list. global_knitr (list) global knitr parameters, like echo. local parameter set priority. file (character(1)) copy returned directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/report_render_and_compress.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Render the report — report_render_and_compress","text":"file argument, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_download_inputs.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the custom list of UI inputs — reporter_download_inputs","title":"Get the custom list of UI inputs — reporter_download_inputs","text":"Get custom list UI inputs","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_download_inputs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the custom list of UI inputs — reporter_download_inputs","text":"","code":"reporter_download_inputs(rmd_yaml_args, rmd_output, showrcode, session)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_download_inputs.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the custom list of UI inputs — reporter_download_inputs","text":"rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_previewer.html","id":null,"dir":"Reference","previous_headings":"","what":"Report previewer module — reporter_previewer","title":"Report previewer module — reporter_previewer","text":"Module offers functionalities visualize, manipulate, interact report cards added report. includes previewer interface see cards options modify report downloading. Cards saved shiny bookmarking mechanism. details see vignette: vignette(\"previewerReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_previewer.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Report previewer module — reporter_previewer","text":"","code":"reporter_previewer_ui(id) reporter_previewer_srv( id, reporter, global_knitr = getOption(\"teal.reporter.global_knitr\"), rmd_output = c(html = \"html_document\", pdf = \"pdf_document\", powerpoint = \"powerpoint_presentation\", word = \"word_document\"), rmd_yaml_args = list(author = \"NEST\", title = \"Report\", date = as.character(Sys.Date()), output = \"html_document\", toc = FALSE), previewer_buttons = c(\"download\", \"load\", \"reset\") )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_previewer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Report previewer module — reporter_previewer","text":"id (character(1)) shiny module instance id. reporter (Reporter) instance. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI. rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument. previewer_buttons (character) set modules include c(\"download\", \"load\", \"reset\") possible values \"download\" required. Default c(\"download\", \"load\", \"reset\")","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_previewer.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Report previewer module — reporter_previewer","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reporter_previewer.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Report previewer module — reporter_previewer","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reset_report_button.html","id":null,"dir":"Reference","previous_headings":"","what":"Reset report button module — reset_report_button","title":"Reset report button module — reset_report_button","text":"Provides button triggers resetting report content. information, refer vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reset_report_button.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Reset report button module — reset_report_button","text":"","code":"reset_report_button_ui(id, label = NULL) reset_report_button_srv(id, reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reset_report_button.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reset report button module — reset_report_button","text":"id (character(1)) shiny module instance id. label (character(1)) label icon. default NULL. reporter (Reporter) instance.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/reset_report_button.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Reset report button module — reset_report_button","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_output_arguments.html","id":null,"dir":"Reference","previous_headings":"","what":"Get document output arguments from the rmarkdown package — rmd_output_arguments","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"Retrieves arguments specified document output type rmarkdown package.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_output_arguments.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"","code":"rmd_output_arguments(output_name, default_values = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_output_arguments.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"output_name (character) rmarkdown output name. default_values (logical(1)) return default values argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_output_arguments.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"","code":"rmd_output_arguments(\"pdf_document\") #> [1] \"toc\" \"toc_depth\" \"number_sections\" #> [4] \"fig_width\" \"fig_height\" \"fig_crop\" #> [7] \"fig_caption\" \"dev\" \"df_print\" #> [10] \"highlight\" \"template\" \"keep_tex\" #> [13] \"keep_md\" \"latex_engine\" \"citation_package\" #> [16] \"includes\" \"md_extensions\" \"output_extensions\" #> [19] \"pandoc_args\" \"extra_dependencies\" rmd_output_arguments(\"pdf_document\", TRUE) #> $toc #> [1] FALSE #> #> $toc_depth #> [1] 2 #> #> $number_sections #> [1] FALSE #> #> $fig_width #> [1] 6.5 #> #> $fig_height #> [1] 4.5 #> #> $fig_crop #> [1] \"auto\" #> #> $fig_caption #> [1] TRUE #> #> $dev #> [1] \"pdf\" #> #> $df_print #> [1] \"default\" #> #> $highlight #> [1] \"default\" #> #> $template #> [1] \"default\" #> #> $keep_tex #> [1] FALSE #> #> $keep_md #> [1] FALSE #> #> $latex_engine #> [1] \"pdflatex\" #> #> $citation_package #> c(\"default\", \"natbib\", \"biblatex\") #> #> $includes #> NULL #> #> $md_extensions #> NULL #> #> $output_extensions #> NULL #> #> $pandoc_args #> NULL #> #> $extra_dependencies #> NULL #>"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_outputs.html","id":null,"dir":"Reference","previous_headings":"","what":"Get document output types from the rmarkdown package — rmd_outputs","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"Retrieves vector available document output types rmarkdown package, pdf_document, html_document, etc.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_outputs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"","code":"rmd_outputs()"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_outputs.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"character vector.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/rmd_outputs.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"","code":"rmd_outputs() #> [1] \"beamer_presentation\" \"context_document\" #> [3] \"github_document\" \"html_document\" #> [5] \"html_document_base\" \"html_extras_for_document\" #> [7] \"ioslides_presentation\" \"latex_document\" #> [9] \"md_document\" \"odt_document\" #> [11] \"pdf_document\" \"powerpoint_presentation\" #> [13] \"rtf_document\" \"slidy_presentation\" #> [15] \"word_document\""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/simple_reporter.html","id":null,"dir":"Reference","previous_headings":"","what":"Simple reporter module — simple_reporter","title":"Simple reporter module — simple_reporter","text":"Module provides compact UI server functions managing report shiny app. module combines functionalities adding cards report, downloading report, resetting report content. details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/simple_reporter.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Simple reporter module — simple_reporter","text":"","code":"simple_reporter_ui(id) simple_reporter_srv( id, reporter, card_fun, global_knitr = getOption(\"teal.reporter.global_knitr\"), rmd_output = c(html = \"html_document\", pdf = \"pdf_document\", powerpoint = \"powerpoint_presentation\", word = \"word_document\"), rmd_yaml_args = list(author = \"NEST\", title = \"Report\", date = as.character(Sys.Date()), output = \"html_document\", toc = FALSE) )"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/simple_reporter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Simple reporter module — simple_reporter","text":"id (character(1)) shiny module instance id. reporter (Reporter) instance. card_fun (function) returns ReportCard instance, function card argument optional comment argument. global_knitr (list) global knitr parameters customizing rendering process. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI. rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/simple_reporter.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Simple reporter module — simple_reporter","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/simple_reporter.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Simple reporter module — simple_reporter","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/simple_reporter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Simple reporter module — simple_reporter","text":"","code":"if (interactive()) { library(shiny) shinyApp( ui = fluidPage(simple_reporter_ui(\"simple\")), server = function(input, output, session) { simple_reporter_srv(\"simple\", Reporter$new(), function(card) card) } ) }"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/split_text_block.html","id":null,"dir":"Reference","previous_headings":"","what":"Divide text block into smaller blocks — split_text_block","title":"Divide text block into smaller blocks — split_text_block","text":"Split text block smaller blocks specified number lines.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/split_text_block.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Divide text block into smaller blocks — split_text_block","text":"","code":"split_text_block(x, n)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/split_text_block.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Divide text block into smaller blocks — split_text_block","text":"x (character) string containing input block text n (integer) number lines per block","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/split_text_block.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Divide text block into smaller blocks — split_text_block","text":"List character strings n lines element.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/split_text_block.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Divide text block into smaller blocks — split_text_block","text":"single character string containing text block multiple lines (separated \\n) split multiple strings n less lines .","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/teal.reporter-package.html","id":null,"dir":"Reference","previous_headings":"","what":"Reporting tools for shiny modules. — teal.reporter-package","title":"Reporting tools for shiny modules. — teal.reporter-package","text":"collection tools creating, previewing modifying reports shiny modules.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/teal.reporter-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Reporting tools for shiny modules. — teal.reporter-package","text":"Maintainer: Dawid Kaledkowski dawid.kaledkowski@roche.com (ORCID) Authors: Kartikeya Kirar kartikeya.kirar@businesspartner.roche.com (ORCID) Marcin Kosinski marcin.kosinski.mk1@roche.com Maciej Nasinski Konrad Pagacz Mahmoud Hallal mahmoud.hallal@roche.com contributors: Chendi Liao chendi.liao@roche.com [reviewer] Dony Unardi unardid@gene.com [reviewer] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/to_flextable.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert content into a flextable — to_flextable","title":"Convert content into a flextable — to_flextable","text":"Converts supported table formats flextable enhanced formatting presentation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/to_flextable.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert content into a flextable — to_flextable","text":"","code":"to_flextable(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/to_flextable.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert content into a flextable — to_flextable","text":"content Supported formats: data.frame, rtables, TableTree, ElementaryTable, listing_df","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/to_flextable.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert content into a flextable — to_flextable","text":"flextable.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/to_flextable.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Convert content into a flextable — to_flextable","text":"Function merges cells colspan > 1, aligns columns center row names left, indents row names 10 times indentation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/yaml_quoted.html","id":null,"dir":"Reference","previous_headings":"","what":"Mark strings for quotation in yaml serialization — yaml_quoted","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"function designed use yaml package explicitly, adds attribute character strings, indicating serialized double quotes.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/yaml_quoted.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"","code":"yaml_quoted(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/yaml_quoted.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"x (character)","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/reference/yaml_quoted.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"","code":"library(yaml) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(pdf_document = list(keep_tex = TRUE)) ) as.yaml(yaml) #> [1] \"author: \\\"NEST\\\"\\ntitle: \\\"Report\\\"\\ndate: \\\"07/04/2019\\\"\\noutput:\\n pdf_document:\\n keep_tex: yes\\n\""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"enhancements-0-3-1-9017","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.3.1.9017","text":"Report cards now included bookmarks. using shiny bookmarking mechanism, present report cards available restored application. Report can loaded back now. zip file report can loaded back restore Previewer state.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"tealreporter-031","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.3.1","title":"teal.reporter 0.3.1","text":"CRAN release: 2024-03-15","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"enhancements-0-3-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.3.1","text":"Added blocking “Download” buttons report rendering, using shinybusy package.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"tealreporter-030","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.3.0","title":"teal.reporter 0.3.0","text":"CRAN release: 2024-02-16","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"enhancements-0-3-0","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.3.0","text":"add_card_button_srv allows specify card_fun label parameter card’s title & content customization. Supports automatic Rcode formatting using suggested formatR package reports. Improve output PDF file format.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"tealreporter-021","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.2.1","title":"teal.reporter 0.2.1","text":"CRAN release: 2023-09-08","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"miscellaneous-0-2-1","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"teal.reporter 0.2.1","text":"Specify minimal version dependent packages. Updated TableBlock convert tables flextables show rendered report. Fixed CRAN requirements first CRAN submission. Removed manual pages non-exported objects. Fixed CRAN requirements first CRAN submission.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"new-features-0-2-0","dir":"Changelog","previous_headings":"","what":"New features","title":"teal.reporter 0.2.0","text":"Added new RcodeBlock block custom rmarkdown r chunk. Added collapsible panel Show R Code previewer. Added additional input needed decide “Show R Code” part rendered report. Added possibility add personalized card name adding card. Added support custom inputs download previewer modules.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"breaking-changes-0-2-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"teal.reporter 0.2.0","text":"Simplified reporter_previewer_ui contain just id argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"enhancements-0-2-0","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.2.0","text":"Changed modal button colors align purpose modals. Updated AddCardModule comment input active cursor adding card. Updated report previewer support preview multiline comment. Added support table contents reporter documents. Added support global knitr options render method Render class. Improved look remove card modal previewer module.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"miscellaneous-0-2-0","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"teal.reporter 0.2.0","text":"Updated append_src method TealReportCard add additional “R Code” Subtitle.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"new-features-0-1-1","dir":"Changelog","previous_headings":"","what":"New features","title":"teal.reporter 0.1.1","text":"Added Archiver class enables saving loading back Report shiny session.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"breaking-changes-0-1-1","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"teal.reporter 0.1.1","text":"Updated append_fs method TealReportCard accept list object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"enhancements-0-1-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.1.1","text":"Added support ElementaryTree class append_table method ReportCard. Added additional validation card_fun evaluation. Added support arguments setup card_fun function add_card_button_srv module, card_fun subset possible arguments now. Added optional dim argument append_plot method ReportCard. Added support Heatmap plots PictureBlock. Updated append_encodings, append_src append_fs automatically add titles. Updated vignettes README content. Made document type names user friendly downloading report. Improved add reporter card button disabled clicked.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"bug-fixes-0-1-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"teal.reporter 0.1.1","text":"Fixed trellis plots caught set_content method PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"miscellaneous-0-1-1","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"teal.reporter 0.1.1","text":"Added to_list from_list methods content related classes. Decoupled metadata content ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/main/news/index.html","id":"tealreporter-010","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.1.0","title":"teal.reporter 0.1.0","text":"Initialize package.","code":""}] +[{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement [INSERT CONTACT METHOD]. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired Mozilla’s code conduct enforcement ladder. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __. example, 69_awesomeproject_fix_spelling_error reference issue 69 reported project awesomeproject aims resolve one spelling errors multiple (likely related) repositories.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"monorepo-and-stageddependencies","dir":"","previous_headings":"Pull requests","what":"monorepo and staged.dependencies","title":"Contribution Guidelines","text":"Sometimes might need change upstream dependent package(s) able submit meaningful change. using staged.dependencies functionality simulate monorepo behavior. dependency configuration already specified project’s staged_dependencies.yaml file. need name feature branches appropriately. exception branch naming convention described . Please refer staged.dependencies package documentation details.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"coding-guidelines","dir":"","previous_headings":"","what":"Coding guidelines","title":"Contribution Guidelines","text":"repository follows unified processes standards adopted maintainers ensure software development carried consistently within teams cohesively across repositories.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"style-guide","dir":"","previous_headings":"Coding guidelines","what":"Style guide","title":"Contribution Guidelines","text":"repository follows standard tidyverse style guide uses lintr lint checks. Customized lint configurations available repository’s .lintr file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"dependency-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency management","title":"Contribution Guidelines","text":"Lightweight right weight. repository follows tinyverse recommedations limiting dependencies minimum.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"dependency-version-management","dir":"","previous_headings":"Coding guidelines","what":"Dependency version management","title":"Contribution Guidelines","text":"code compatible (!) historical versions given dependenct package, required specify minimal version DESCRIPTION file. particular: development version requires (imports) development version another package - required put abc (>= 1.2.3.9000).","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"r--package-versions","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"R & package versions","title":"Contribution Guidelines","text":"continuously test packages newest R version along recent dependencies CRAN BioConductor. recommend working environment also set way. can find details R version packages used R CMD check GitHub Action execution log - step prints R sessionInfo(). discover bugs older R versions older set dependencies, please create relevant bug reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"pre-commit","dir":"","previous_headings":"Coding guidelines > Recommended development environment & tools","what":"pre-commit","title":"Contribution Guidelines","text":"highly recommend use pre-commit tool combined R hooks pre-commit execute checks committing pushing changes. Pre-commit hooks already available repository’s .pre-commit-config.yaml file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"recognition-model","dir":"","previous_headings":"","what":"Recognition model","title":"Contribution Guidelines","text":"mentioned previously, contributions deeply valued appreciated. contribution data available part repository insights, recognize significant contribution hence add contributor package authors list, following rules enforced: Minimum 5% lines code authored* (determined git blame query) top 5 contributors terms number commits lines added lines removed* *Excluding auto-generated code, including limited roxygen comments renv.lock files. package maintainer also reserves right adjust criteria recognize contributions.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/CONTRIBUTING.html","id":"questions","dir":"","previous_headings":"","what":"Questions","title":"Contribution Guidelines","text":"questions regarding contribution guidelines, please contact package/repository maintainer.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/SECURITY.html","id":"reporting-security-issues","dir":"","previous_headings":"","what":"Reporting Security Issues","title":"Security Policy","text":"believe found security vulnerability repositories organization, please report us coordinated disclosure. Please report security vulnerabilities public GitHub issues, discussions, pull requests. Instead, please send email vulnerability.management[@]roche.com. Please include much information listed can help us better understand resolve issue: type issue (e.g., buffer overflow, SQL injection, cross-site scripting) Full paths source file(s) related manifestation issue location affected source code (tag/branch/commit direct URL) special configuration required reproduce issue Step--step instructions reproduce issue Proof--concept exploit code (possible) Impact issue, including attacker might exploit issue information help us triage report quickly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/SECURITY.html","id":"data-security-standards-dss","dir":"","previous_headings":"","what":"Data Security Standards (DSS)","title":"Security Policy","text":"Please make sure reporting issues form bug, feature, pull request, sensitive information PII, PHI, PCI completely removed text attachments, including pictures videos.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter-blocks-overview.html","id":"overview-of-content-blocks","dir":"Articles","previous_headings":"","what":"Overview of Content Blocks","title":"teal.reporter blocks overview","text":"document serves comprehensive guide various types content blocks available teal.reporter. blocks allow users structure customize reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter-blocks-overview.html","id":"table-content-blocks-in-teal-reporter","dir":"Articles","previous_headings":"","what":"Table: Content Blocks in teal.reporter","title":"teal.reporter blocks overview","text":"following table outlines different blocks can included ReportCard, along descriptions usage examples: blocks form building blocks ReportCard, serving specific function contributes overall layout content report. ReportCard object utilizes append_* methods integrate various blocks TextBlock, PictureBlock, RcodeBlock, TableBlock. following diagram illustrates inheritance relationship different blocks:","code":"%% This is a mermaid diagram, if you see this the plot failed to render. Sorry. classDiagram class ReportCard{ +append_content() +append_text() +append_table() +append_plot() +append_rcode() +append_metadata() } ReportCard <.. FileBlock: utilizes ReportCard <.. ContentBlock: utilizes ReportCard <.. TextBlock: utilizes ReportCard <.. NewpageBlock: utilizes ReportCard <.. RcodeBlock: utilizes ReportCard <.. PictureBlock: utilizes ReportCard <.. TableBlock: utilizes ContentBlock <|-- TextBlock ContentBlock <|-- NewpageBlock ContentBlock <|-- RcodeBlock ContentBlock <|-- FileBlock FileBlock <|-- PictureBlock FileBlock <|-- TableBlock namespace Blocks { class ContentBlock class FileBlock class TextBlock class NewpageBlock class RcodeBlock class PictureBlock class TableBlock } style ContentBlock fill:lightpurple style FileBlock fill: lightgreen style TextBlock fill: pink style NewpageBlock fill: pink style RcodeBlock fill: pink style PictureBlock fill: gold style TableBlock fill:gold style ReportCard fill:lightblue"},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter-blocks-overview.html","id":"global-knitr-options","dir":"Articles","previous_headings":"","what":"Global knitr Options","title":"teal.reporter blocks overview","text":"ensure consistency control rendering markdown elements within reports, teal.reporter adheres following default global knitr options: access default values global_knitr defaults include: * echo: displays code along output (echo = TRUE). * tidy: formats R code readability using formatR package installed (tidy = TRUE), otherwise set FALSE. * width cutoff: sets maximum number characters per line code output (tidy.opts = list(width.cutoff = 60)). can access modify settings follows:","code":"library(teal.reporter) ## getOption(\"teal.reporter.global_knitr\") ## $echo ## [1] TRUE ## ## $tidy.opts ## $tidy.opts$width.cutoff ## [1] 60 ## ## ## $tidy ## [1] TRUE"},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter-blocks-overview.html","id":"example-report-using-multiple-content-blocks","dir":"Articles","previous_headings":"","what":"Example Report Using Multiple Content Blocks","title":"teal.reporter blocks overview","text":"complete example demonstrating create report combining various content blocks:","code":"library(ggplot2) report_card <- ReportCard$new() report_card$append_text(\"Header 2 text\", \"header2\") report_card$append_text(\"A paragraph of default text\") report_card$append_plot( ggplot(airquality, aes(x = Ozone, y = Solar.R)) + geom_line(na.rm = TRUE) ) report_card$append_table(airquality) report_card$append_rcode(\"airquality_new <- airquality\", echo = FALSE) report_card$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) report_card$get_content() ## [[1]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## from_list: function (x) ## get_available_styles: function () ## get_content: function () ## get_style: function () ## initialize: function (content = character(0), style = private$styles[1]) ## set_content: function (content) ## set_style: function (style) ## to_list: function () ## Private: ## content: Header 2 text ## deep_clone: function (name, value) ## style: header2 ## styles: default header2 header3 verbatim ## ## [[2]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## from_list: function (x) ## get_available_styles: function () ## get_content: function () ## get_style: function () ## initialize: function (content = character(0), style = private$styles[1]) ## set_content: function (content) ## set_style: function (style) ## to_list: function () ## Private: ## content: A paragraph of default text ## deep_clone: function (name, value) ## style: default ## styles: default header2 header3 verbatim ## ## [[3]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## finalize: function () ## from_list: function (x, output_dir) ## get_content: function () ## get_dim: function () ## get_title: function () ## initialize: function (plot) ## set_content: function (content) ## set_dim: function (dim) ## set_title: function (title) ## to_list: function (output_dir) ## Private: ## content: /tmp/RtmpKcr0Q6/file6a159893f17.png ## deep_clone: function (name, value) ## dim: 800 600 ## supported_plots: ggplot grob trellis Heatmap ## title: ## type: ## ## [[4]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## finalize: function () ## from_list: function (x, output_dir) ## get_content: function () ## initialize: function (table) ## set_content: function (content) ## to_list: function (output_dir) ## Private: ## content: /tmp/RtmpKcr0Q6/file6a1756de4f7.rds ## deep_clone: function (name, value) ## supported_tables: data.frame rtables TableTree ElementaryTable listing_df ## ## [[5]] ## ## Inherits from: ## Public: ## clone: function (deep = FALSE) ## from_list: function (x) ## get_available_params: function () ## get_content: function () ## get_params: function () ## initialize: function (content = character(0), ...) ## set_content: function (content) ## set_params: function (params) ## to_list: function () ## Private: ## content: airquality_new <- airquality ## deep_clone: function (name, value) ## params: list"},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Getting Started with teal.reporter","text":"engaging data analysis within shiny app, users often encounter insights wish capture share, presentations, markdown articles, formats. teal.reporter package simplifies process developers end-users shiny applications. allows easy generation dissemination findings. eliminates need manual copy-pasting writing markdown. teal.reporter provides suite modules objects integrate seamlessly create reports directly shiny apps minimal effort users developers. can done easy adding one reporting tools module:","code":"library(teal.reporter) ## library(shiny) ui <- fluidPage(simple_reporter_ui(\"simple\")) server <- function(input, output, session) { # The bulk of your module logic here create_module_card <- function(card) { card$append_text(\"This is the content of the report from the `simple` module\") } simple_reporter_srv(\"simple\", Reporter$new(), create_module_card) } if (interactive()) shinyApp(ui, server)"},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter.html","id":"basic-usage","dir":"Articles","previous_headings":"Where to next","what":"Basic usage","title":"Getting Started with teal.reporter","text":"basic usage teal.reporter quickest way enhance modules reporting, explore simple reporting setup vignette.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter.html","id":"previewing-a-report","dir":"Articles","previous_headings":"Where to next","what":"Previewing a report","title":"Getting Started with teal.reporter","text":"enable application users preview, customize, reorder reports prior finalization, delve report previewer vignette.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter.html","id":"integration-with-teal","dir":"Articles","previous_headings":"Where to next","what":"Integration with teal","title":"Getting Started with teal.reporter","text":"Discover teal.reporter complements teal framework visiting dedicated integrating reporting teal..","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/articles/teal-reporter.html","id":"more-control","dir":"Articles","previous_headings":"Where to next","what":"More control","title":"Getting Started with teal.reporter","text":"Developers want control reporting process customization layout can benefit learning topics add_card_button,download_report_button reset_report_button offered teal.reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Dawid Kaledkowski. Author, maintainer. Kartikeya Kirar. Author. Marcin Kosinski. Author. Maciej Nasinski. Author. Konrad Pagacz. Author. Mahmoud Hallal. Author. Chendi Liao. Reviewer. Dony Unardi. Reviewer. F. Hoffmann-La Roche AG. Copyright holder, funder.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Kaledkowski D, Kirar K, Kosinski M, Nasinski M, Pagacz K, Hallal M (2024). teal.reporter: Reporting Tools 'shiny' Modules. R package version 0.3.1.9018, https://insightsengineering.github.io/teal.reporter/, https://github.com/insightsengineering/teal.reporter.","code":"@Manual{, title = {teal.reporter: Reporting Tools for 'shiny' Modules}, author = {Dawid Kaledkowski and Kartikeya Kirar and Marcin Kosinski and Maciej Nasinski and Konrad Pagacz and Mahmoud Hallal}, year = {2024}, note = {R package version 0.3.1.9018, https://insightsengineering.github.io/teal.reporter/}, url = {https://github.com/insightsengineering/teal.reporter}, }"},{"path":"https://insightsengineering.github.io/teal.reporter/index.html","id":"tealreporter","dir":"","previous_headings":"","what":"Reporting Tools for shiny Modules","title":"Reporting Tools for shiny Modules","text":"teal.reporter empowers shiny teal applications seamlessly integrate reporting functionality. Developers, whether working shiny app teal module, define report’s content, teal.reporter takes care rest. package provides: shiny module adding cards (.e. items) report shiny module previewing report -screen ability download zip file containing reports","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Reporting Tools for shiny Modules","text":"Alternatively, might want use development version.","code":"install.packages('teal.reporter') # install.packages(\"pak\") pak::pak(\"insightsengineering/teal.reporter\")"},{"path":"https://insightsengineering.github.io/teal.reporter/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Reporting Tools for shiny Modules","text":"understand use package, please refer Getting Started article, provides multiple examples code implementation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/index.html","id":"getting-help","dir":"","previous_headings":"","what":"Getting help","title":"Reporting Tools for shiny Modules","text":"encounter bug feature request, please file issue. questions, discussions, staying date, please use teal channel pharmaverse slack workspace.","code":""},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"ContentBlock: A building block for report content — ContentBlock","title":"ContentBlock: A building block for report content — ContentBlock","text":"class represents basic content unit report, text, images, multimedia elements. serves foundation constructing complex report structures.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"ContentBlock: A building block for report content — ContentBlock","text":"ContentBlock$new() ContentBlock$set_content() ContentBlock$get_content() ContentBlock$from_list() ContentBlock$to_list() ContentBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Initialize ContentBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"ContentBlock: A building block for report content — ContentBlock","text":"Returns ContentBlock object content default style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"Object class ContentBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") ContentBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"method-set-content-","dir":"Reference","previous_headings":"","what":"Method set_content()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Sets content ContentBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$set_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ContentBlock: A building block for report content — ContentBlock","text":"content (character(0) character(1)) string file path assigned ContentBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$set_content(\"Base64 encoded picture\")"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"method-get-content-","dir":"Reference","previous_headings":"","what":"Method get_content()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Retrieves content assigned block.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"character string file path assigned ContentBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Create ContentBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$from_list(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"ContentBlock: A building block for report content — ContentBlock","text":"x (named list) two fields text style. Use get_available_styles method get possible styles.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"ContentBlock: A building block for report content — ContentBlock","text":"Convert ContentBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"ContentBlock: A building block for report content — ContentBlock","text":"named list text style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"ContentBlock: A building block for report content — ContentBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"ContentBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"ContentBlock: A building block for report content — ContentBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ContentBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ContentBlock: A building block for report content — ContentBlock","text":"","code":"## ------------------------------------------------ ## Method `ContentBlock$new` ## ------------------------------------------------ ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") ContentBlock$new() #> #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_content: function () #> initialize: function () #> set_content: function (content) #> to_list: function () #> Private: #> content: #> deep_clone: function (name, value) ## ------------------------------------------------ ## Method `ContentBlock$set_content` ## ------------------------------------------------ ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$set_content(\"Base64 encoded picture\") ## ------------------------------------------------ ## Method `ContentBlock$get_content` ## ------------------------------------------------ ContentBlock <- getFromNamespace(\"ContentBlock\", \"teal.reporter\") block <- ContentBlock$new() block$get_content() #> character(0)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"FileBlock — FileBlock","title":"FileBlock — FileBlock","text":"FileBlock manages file-based content report, ensuring appropriate handling content files.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"FileBlock — FileBlock","text":"teal.reporter::ContentBlock -> FileBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"FileBlock — FileBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$initialize() teal.reporter::ContentBlock$set_content()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"FileBlock — FileBlock","text":"FileBlock$finalize() FileBlock$from_list() FileBlock$to_list() FileBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"method-finalize-","dir":"Reference","previous_headings":"","what":"Method finalize()","title":"FileBlock — FileBlock","text":"Finalize FileBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$finalize()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"FileBlock — FileBlock","text":"Removes temporary file created constructor.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"FileBlock — FileBlock","text":"Create FileBlock list. list contain one named field, \"basename\".","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$from_list(x, output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"FileBlock — FileBlock","text":"x (named list) one field \"basename\", name file. output_dir (character) path directory file copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"FileBlock — FileBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"FileBlock — FileBlock","text":"","code":"FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() file_path <- tempfile(fileext = \".png\") saveRDS(iris, file_path) block$from_list(list(basename = basename(file_path)), dirname(file_path))"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"FileBlock — FileBlock","text":"Convert FileBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$to_list(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"FileBlock — FileBlock","text":"output_dir (character) path directory file copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"FileBlock — FileBlock","text":"named list basename file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"FileBlock — FileBlock","text":"","code":"FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() block$to_list(tempdir())"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"FileBlock — FileBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"FileBlock — FileBlock","text":"","code":"FileBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"FileBlock — FileBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/FileBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"FileBlock — FileBlock","text":"","code":"## ------------------------------------------------ ## Method `FileBlock$from_list` ## ------------------------------------------------ FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() file_path <- tempfile(fileext = \".png\") saveRDS(iris, file_path) block$from_list(list(basename = basename(file_path)), dirname(file_path)) ## ------------------------------------------------ ## Method `FileBlock$to_list` ## ------------------------------------------------ FileBlock <- getFromNamespace(\"FileBlock\", \"teal.reporter\") block <- FileBlock$new() block$to_list(tempdir()) #> $basename #> character(0) #>"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"NewpageBlock — NewpageBlock","title":"NewpageBlock — NewpageBlock","text":"ContentBlock subclass represents page break report output.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"NewpageBlock — NewpageBlock","text":"teal.reporter::ContentBlock -> NewpageBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"NewpageBlock — NewpageBlock","text":"teal.reporter::ContentBlock$from_list() teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$set_content() teal.reporter::ContentBlock$to_list()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"NewpageBlock — NewpageBlock","text":"NewpageBlock$new() NewpageBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"NewpageBlock — NewpageBlock","text":"Initialize NewpageBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NewpageBlock — NewpageBlock","text":"","code":"NewpageBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"NewpageBlock — NewpageBlock","text":"Returns NewpageBlock object content default style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"NewpageBlock — NewpageBlock","text":"Object class NewpageBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NewpageBlock — NewpageBlock","text":"","code":"NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") block <- NewpageBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"NewpageBlock — NewpageBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"NewpageBlock — NewpageBlock","text":"","code":"NewpageBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NewpageBlock — NewpageBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/NewpageBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NewpageBlock — NewpageBlock","text":"","code":"## ------------------------------------------------ ## Method `NewpageBlock$new` ## ------------------------------------------------ NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") block <- NewpageBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"PictureBlock — PictureBlock","title":"PictureBlock — PictureBlock","text":"Specialized FileBlock managing picture content reports. designed handle plots packages ggplot2, grid, lattice. can save plots files, set titles specify dimensions.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"super-classes","dir":"Reference","previous_headings":"","what":"Super classes","title":"PictureBlock — PictureBlock","text":"teal.reporter::ContentBlock -> teal.reporter::FileBlock -> PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"PictureBlock — PictureBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::FileBlock$finalize() teal.reporter::FileBlock$from_list() teal.reporter::FileBlock$to_list()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"PictureBlock — PictureBlock","text":"PictureBlock$new() PictureBlock$set_content() PictureBlock$set_title() PictureBlock$get_title() PictureBlock$set_dim() PictureBlock$get_dim() PictureBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"PictureBlock — PictureBlock","text":"Initialize PictureBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$new(plot)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"plot (ggplot grid) picture PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"Object class PictureBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-set-content-","dir":"Reference","previous_headings":"","what":"Method set_content()","title":"PictureBlock — PictureBlock","text":"Sets content PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$set_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"content (ggplot grob trellis) picture PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"PictureBlock — PictureBlock","text":"Raises error argument ggplot, grob trellis plot.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-set-title-","dir":"Reference","previous_headings":"","what":"Method set_title()","title":"PictureBlock — PictureBlock","text":"Sets title PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$set_title(title)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"title (character(1)) string assigned PictureBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"PictureBlock — PictureBlock","text":"Raises error argument character(1).","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_title(\"Title\")"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-get-title-","dir":"Reference","previous_headings":"","what":"Method get_title()","title":"PictureBlock — PictureBlock","text":"Get title PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$get_title()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"content PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_title()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-set-dim-","dir":"Reference","previous_headings":"","what":"Method set_dim()","title":"PictureBlock — PictureBlock","text":"Sets dimensions PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$set_dim(dim)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"dim (numeric(2)) figure dimensions (width height) pixels.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_dim(c(800, 600))"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-get-dim-","dir":"Reference","previous_headings":"","what":"Method get_dim()","title":"PictureBlock — PictureBlock","text":"Get PictureBlock dimensions numeric vector.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$get_dim()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"PictureBlock — PictureBlock","text":"numeric array 2 numeric values representing width height pixels.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_dim()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"PictureBlock — PictureBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"PictureBlock — PictureBlock","text":"","code":"PictureBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"arguments-4","dir":"Reference","previous_headings":"","what":"Arguments","title":"PictureBlock — PictureBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/PictureBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"PictureBlock — PictureBlock","text":"","code":"library(ggplot2) library(lattice) PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_content(ggplot(iris)) PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_content(bwplot(1)) PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_content(ggplotGrob(ggplot(iris))) ## ------------------------------------------------ ## Method `PictureBlock$set_title` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_title(\"Title\") ## ------------------------------------------------ ## Method `PictureBlock$get_title` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_title() #> [1] \"\" ## ------------------------------------------------ ## Method `PictureBlock$set_dim` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$set_dim(c(800, 600)) ## ------------------------------------------------ ## Method `PictureBlock$get_dim` ## ------------------------------------------------ PictureBlock <- getFromNamespace(\"PictureBlock\", \"teal.reporter\") block <- PictureBlock$new() block$get_dim() #> [1] 800 600"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"RcodeBlock — RcodeBlock","title":"RcodeBlock — RcodeBlock","text":"Specialized ContentBlock designed embed R code reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"RcodeBlock — RcodeBlock","text":"teal.reporter::ContentBlock -> RcodeBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"RcodeBlock — RcodeBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$set_content()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"RcodeBlock — RcodeBlock","text":"RcodeBlock$new() RcodeBlock$set_params() RcodeBlock$get_params() RcodeBlock$get_available_params() RcodeBlock$from_list() RcodeBlock$to_list() RcodeBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"RcodeBlock — RcodeBlock","text":"Initialize RcodeBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$new(content = character(0), ...)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"content (character(1) character(0)) string assigned RcodeBlock ... rmarkdown R chunk parameter value.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"RcodeBlock — RcodeBlock","text":"Returns RcodeBlock object content parameters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"Object class RcodeBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-set-params-","dir":"Reference","previous_headings":"","what":"Method set_params()","title":"RcodeBlock — RcodeBlock","text":"Sets parameters RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$set_params(params)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"params (list) rmarkdown R chunk parameter value.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"RcodeBlock — RcodeBlock","text":"Configures rmarkdown chunk parameters R code block, influencing rendering execution behavior.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$set_params(list(echo = TRUE))"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-get-params-","dir":"Reference","previous_headings":"","what":"Method get_params()","title":"RcodeBlock — RcodeBlock","text":"Get parameters RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$get_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"character parameters RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-get-available-params-","dir":"Reference","previous_headings":"","what":"Method get_available_params()","title":"RcodeBlock — RcodeBlock","text":"Get available array parameters available RcodeBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$get_available_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"character array parameters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_available_params()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"RcodeBlock — RcodeBlock","text":"Create RcodeBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$from_list(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"x (named list) two fields text params. Use get_available_params method get possible parameters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$from_list(list(text = \"sth\", params = list()))"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"RcodeBlock — RcodeBlock","text":"Convert RcodeBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"RcodeBlock — RcodeBlock","text":"named list text params.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"RcodeBlock — RcodeBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"RcodeBlock — RcodeBlock","text":"","code":"RcodeBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"RcodeBlock — RcodeBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/RcodeBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"RcodeBlock — RcodeBlock","text":"","code":"## ------------------------------------------------ ## Method `RcodeBlock$new` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() ## ------------------------------------------------ ## Method `RcodeBlock$set_params` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$set_params(list(echo = TRUE)) ## ------------------------------------------------ ## Method `RcodeBlock$get_params` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_params() #> list() ## ------------------------------------------------ ## Method `RcodeBlock$get_available_params` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$get_available_params() #> [1] \"eval\" \"echo\" \"results\" \"tidy\" #> [5] \"tidy.opts\" \"collapse\" \"prompt\" \"comment\" #> [9] \"highlight\" \"size\" \"background\" \"strip.white\" #> [13] \"cache\" \"cache.path\" \"cache.vars\" \"cache.lazy\" #> [17] \"dependson\" \"autodep\" \"cache.rebuild\" \"fig.keep\" #> [21] \"fig.show\" \"fig.align\" \"fig.path\" \"dev\" #> [25] \"dev.args\" \"dpi\" \"fig.ext\" \"fig.width\" #> [29] \"fig.height\" \"fig.env\" \"fig.cap\" \"fig.scap\" #> [33] \"fig.lp\" \"fig.subcap\" \"fig.pos\" \"out.width\" #> [37] \"out.height\" \"out.extra\" \"fig.retina\" \"external\" #> [41] \"sanitize\" \"interval\" \"aniopts\" \"warning\" #> [45] \"error\" \"message\" \"render\" \"ref.label\" #> [49] \"child\" \"engine\" \"split\" \"include\" #> [53] \"purl\" ## ------------------------------------------------ ## Method `RcodeBlock$from_list` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$from_list(list(text = \"sth\", params = list())) ## ------------------------------------------------ ## Method `RcodeBlock$to_list` ## ------------------------------------------------ RcodeBlock <- getFromNamespace(\"RcodeBlock\", \"teal.reporter\") block <- RcodeBlock$new() block$to_list() #> $text #> character(0) #> #> $params #> list() #>"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":null,"dir":"Reference","previous_headings":"","what":"Renderer — Renderer","title":"Renderer — Renderer","text":"class rendering reports ContentBlock various formats using rmarkdown. supports TextBlock, PictureBlock, RcodeBlock, NewpageBlock, TableBlock.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"Renderer — Renderer","text":"Renderer$new() Renderer$finalize() Renderer$renderRmd() Renderer$render() Renderer$get_output_dir() Renderer$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"Renderer — Renderer","text":"Initialize Renderer object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Renderer — Renderer","text":"Creates new instance Renderer temporary directory storing report files.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"Object class Renderer, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Renderer — Renderer","text":"","code":"Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") Renderer$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"method-finalize-","dir":"Reference","previous_headings":"","what":"Method finalize()","title":"Renderer — Renderer","text":"Finalizes Renderer object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$finalize()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"method-renderrmd-","dir":"Reference","previous_headings":"","what":"Method renderRmd()","title":"Renderer — Renderer","text":"Getting Rmd text easily rendered later.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$renderRmd( blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\") )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Renderer — Renderer","text":"blocks (list) TextBlock, PictureBlock NewpageBlock objects. yaml_header (character) rmarkdown yaml header. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"Renderer — Renderer","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"Character vector constituting rmarkdown text (yaml header + body), ready rendered.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"method-render-","dir":"Reference","previous_headings":"","what":"Method render()","title":"Renderer — Renderer","text":"Renders Report desired output format compiling rmarkdown file.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$render( blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\"), ... )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"Renderer — Renderer","text":"blocks (list) TextBlock, PictureBlock NewpageBlock objects. yaml_header (character) rmarkdown yaml header. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process. ... rmarkdown::render arguments, input output_dir updated.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"details-2","dir":"Reference","previous_headings":"","what":"Details","title":"Renderer — Renderer","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"character path output.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"method-get-output-dir-","dir":"Reference","previous_headings":"","what":"Method get_output_dir()","title":"Renderer — Renderer","text":"Get output_dir field.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$get_output_dir()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"Renderer — Renderer","text":"character output_dir field path.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"Renderer — Renderer","text":"","code":"Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\")$new() Renderer$get_output_dir()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"Renderer — Renderer","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"Renderer — Renderer","text":"","code":"Renderer$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"Renderer — Renderer","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Renderer.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Renderer — Renderer","text":"","code":"library(yaml) library(rtables) #> Loading required package: formatters #> #> Attaching package: ‘formatters’ #> The following object is masked from ‘package:base’: #> #> %||% #> Loading required package: magrittr #> #> Attaching package: ‘magrittr’ #> The following objects are masked from ‘package:testthat’: #> #> equals, is_less_than, not #> #> Attaching package: ‘rtables’ #> The following object is masked from ‘package:utils’: #> #> str library(ggplot2) ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) card2$append_rcode(\"2+2\", echo = FALSE) Reporter <- getFromNamespace(\"Reporter\", \"teal.reporter\") reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml_l <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(html_document = list(toc = FALSE)) ) md_header <- getFromNamespace(\"md_header\", \"teal.reporter\") yaml_header <- md_header(as.yaml(yaml_l)) Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") result_path <- Renderer$new()$renderRmd(reporter$get_blocks(), yaml_header) library(yaml) library(ggplot2) ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. ReportCard <- getFromNamespace(\"ReportCard\", \"teal.reporter\") card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) card2$append_rcode(\"2+2\", echo = FALSE) Reporter <- getFromNamespace(\"Reporter\", \"teal.reporter\")$new() Reporter$append_cards(list(card1, card2)) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml_l <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(html_document = list(toc = FALSE)) ) md_header <- getFromNamespace(\"md_header\", \"teal.reporter\") yaml_header <- md_header(as.yaml(yaml_l)) Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") result_path <- Renderer$new()$render(Reporter$get_blocks(), yaml_header) ## ------------------------------------------------ ## Method `Renderer$new` ## ------------------------------------------------ Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\") Renderer$new() #> #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> get_output_dir: function () #> initialize: function () #> render: function (blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\"), #> renderRmd: function (blocks, yaml_header, global_knitr = getOption(\"teal.reporter.global_knitr\")) #> Private: #> block2md: function (block) #> output_dir: /tmp/Rtmpvcn05j/report_202412110930215968 #> pictureBlock2md: function (block) #> rcodeBlock2md: function (block) #> report_type: NULL #> tableBlock2md: function (block) #> textBlock2md: function (block) ## ------------------------------------------------ ## Method `Renderer$get_output_dir` ## ------------------------------------------------ Renderer <- getFromNamespace(\"Renderer\", \"teal.reporter\")$new() Renderer$get_output_dir() #> [1] \"/tmp/Rtmpvcn05j/report_202412110930215986\""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":null,"dir":"Reference","previous_headings":"","what":"ReportCard: An R6 class for building report elements — ReportCard","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"R6 class supports creating report card containing text, plot, table metadata blocks can appended rendered form report output shiny app. information various blocks, refer vignette: vignette(\"teal-reporter-blocks-overview\", \"teal.reporter\").","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"ReportCard$new() ReportCard$append_table() ReportCard$append_plot() ReportCard$append_text() ReportCard$append_rcode() ReportCard$append_content() ReportCard$get_content() ReportCard$reset() ReportCard$get_metadata() ReportCard$append_metadata() ReportCard$get_name() ReportCard$set_name() ReportCard$to_list() ReportCard$from_list() ReportCard$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Initialize ReportCard object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Object class ReportCard, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-append-table-","dir":"Reference","previous_headings":"","what":"Method append_table()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends table ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_table(table)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"table (data.frame rtables TableTree ElementaryTable listing_df) can coerced table.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_table(iris)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-append-plot-","dir":"Reference","previous_headings":"","what":"Method append_plot()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends plot ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_plot(plot, dim = NULL)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"plot (ggplot grob trellis) plot object. dim (numeric(2)) width height pixels.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-append-text-","dir":"Reference","previous_headings":"","what":"Method append_text()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends text paragraph ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_text(text, style = TextBlock$new()$get_available_styles()[1])"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"text (character) text content add. style (character(1)) style paragraph. One : default, header, verbatim","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_text(\"A paragraph of default text\")"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-append-rcode-","dir":"Reference","previous_headings":"","what":"Method append_rcode()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends R code chunk ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_rcode(text, ...)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"text (character) R code include. ... Additional rmarkdown parameters formatting R code chunk.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_rcode(\"2+2\", echo = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-append-content-","dir":"Reference","previous_headings":"","what":"Method append_content()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends generic ContentBlock ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-4","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"content (ContentBlock) object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") card <- ReportCard$new()$append_content(NewpageBlock$new())"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-get-content-","dir":"Reference","previous_headings":"","what":"Method get_content()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Get content blocks ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-6","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"list() list TableBlock, TextBlock PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_content()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-reset-","dir":"Reference","previous_headings":"","what":"Method reset()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Clears content metadata ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-7","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$reset()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-7","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-get-metadata-","dir":"Reference","previous_headings":"","what":"Method get_metadata()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Get metadata associated ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-8","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-8","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"named list list elements.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-6","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-append-metadata-","dir":"Reference","previous_headings":"","what":"Method append_metadata()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Appends metadata ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-9","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$append_metadata(key, value)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-5","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"key (character(1)) string specifying metadata key. value value associated metadata key.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-9","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-get-name-","dir":"Reference","previous_headings":"","what":"Method get_name()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Get name ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-10","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$get_name()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-10","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"character card name.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-7","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$new()$set_name(\"NAME\")$get_name()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-set-name-","dir":"Reference","previous_headings":"","what":"Method set_name()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Set name ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-11","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$set_name(name)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-6","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"name (character(1)) card name.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-11","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"examples-8","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$new()$set_name(\"NAME\")$get_name()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Convert ReportCard list, including content metadata.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-12","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$to_list(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-7","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"output_dir (character) path directory files copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-12","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"(named list) ReportCard representation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"Reconstructs ReportCard list representation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-13","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$from_list(card, output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-8","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"card (named list) ReportCard representation. output_dir (character) path directory file copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"returns-13","dir":"Reference","previous_headings":"","what":"Returns","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"usage-14","dir":"Reference","previous_headings":"","what":"Usage","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"ReportCard$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"arguments-9","dir":"Reference","previous_headings":"","what":"Arguments","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/ReportCard.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ReportCard: An R6 class for building report elements — ReportCard","text":"","code":"library(ggplot2) card <- ReportCard$new()$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. library(ggplot2) card <- ReportCard$new()$append_text(\"Some text\")$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() )$append_text(\"Some text\")$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/Rtmpvcn05j/file39351142e2e.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> card$get_metadata() #> $lm #> #> Call: #> lm(formula = Ozone ~ Solar.R, data = airquality) #> #> Coefficients: #> (Intercept) Solar.R #> 18.5987 0.1272 #> #> library(ggplot2) card <- ReportCard$new()$append_text(\"Some text\")$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() )$append_text(\"Some text\")$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/Rtmpvcn05j/file39319cbf263.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> card$to_list(tempdir()) #> $blocks #> $blocks$TextBlock #> $blocks$TextBlock$text #> [1] \"Some text\" #> #> $blocks$TextBlock$style #> [1] \"default\" #> #> #> $blocks$PictureBlock #> $blocks$PictureBlock$basename #> [1] \"file39319cbf263.png\" #> #> #> $blocks$TextBlock #> $blocks$TextBlock$text #> [1] \"Some text\" #> #> $blocks$TextBlock$style #> [1] \"default\" #> #> #> #> $metadata #> $metadata$lm #> #> Call: #> lm(formula = Ozone ~ Solar.R, data = airquality) #> #> Coefficients: #> (Intercept) Solar.R #> 18.5987 0.1272 #> #> #> #> $name #> character(0) #> library(ggplot2) card <- ReportCard$new()$append_text(\"Some text\")$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() )$append_text(\"Some text\")$append_metadata(key = \"lm\", value = lm(Ozone ~ Solar.R, airquality)) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/Rtmpvcn05j/file3933b9cbc80.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> ReportCard$new()$from_list(card$to_list(tempdir()), tempdir()) ## ------------------------------------------------ ## Method `ReportCard$new` ## ------------------------------------------------ card <- ReportCard$new() ## ------------------------------------------------ ## Method `ReportCard$append_table` ## ------------------------------------------------ card <- ReportCard$new()$append_table(iris) ## ------------------------------------------------ ## Method `ReportCard$append_text` ## ------------------------------------------------ card <- ReportCard$new()$append_text(\"A paragraph of default text\") ## ------------------------------------------------ ## Method `ReportCard$append_rcode` ## ------------------------------------------------ card <- ReportCard$new()$append_rcode(\"2+2\", echo = FALSE) ## ------------------------------------------------ ## Method `ReportCard$append_content` ## ------------------------------------------------ NewpageBlock <- getFromNamespace(\"NewpageBlock\", \"teal.reporter\") card <- ReportCard$new()$append_content(NewpageBlock$new()) ## ------------------------------------------------ ## Method `ReportCard$get_content` ## ------------------------------------------------ card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_content() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Some text #> deep_clone: function (name, value) #> style: default #> styles: default header2 header3 verbatim #> ## ------------------------------------------------ ## Method `ReportCard$get_metadata` ## ------------------------------------------------ card <- ReportCard$new()$append_text(\"Some text\")$append_metadata(\"rc\", \"a <- 2 + 2\") card$get_metadata() #> $rc #> [1] \"a <- 2 + 2\" #> ## ------------------------------------------------ ## Method `ReportCard$get_name` ## ------------------------------------------------ ReportCard$new()$set_name(\"NAME\")$get_name() #> [1] \"NAME\" ## ------------------------------------------------ ## Method `ReportCard$set_name` ## ------------------------------------------------ ReportCard$new()$set_name(\"NAME\")$get_name() #> [1] \"NAME\""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":null,"dir":"Reference","previous_headings":"","what":"Reporter: An R6 class for managing report cards — Reporter","title":"Reporter: An R6 class for managing report cards — Reporter","text":"R6 class designed store manage report cards, facilitating creation, manipulation, serialization report-related data.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Reporter: An R6 class for managing report cards — Reporter","text":"function used shiny reactive context. Report id converting JSON compared currently available one. Report id converting JSON compared currently available one.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reporter$new() Reporter$append_cards() Reporter$get_cards() Reporter$get_blocks() Reporter$reset() Reporter$remove_cards() Reporter$swap_cards() Reporter$get_reactive_add_card() Reporter$get_metadata() Reporter$append_metadata() Reporter$from_reporter() Reporter$to_list() Reporter$from_list() Reporter$to_jsondir() Reporter$from_jsondir() Reporter$set_id() Reporter$get_id() Reporter$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Initialize Reporter object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Object class Reporter, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-append-cards-","dir":"Reference","previous_headings":"","what":"Method append_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Append one ReportCard objects Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$append_cards(cards)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"cards (ReportCard) list objects","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-get-cards-","dir":"Reference","previous_headings":"","what":"Method get_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Retrieves ReportCard objects contained Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_cards()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"(list) ReportCard objects.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-get-blocks-","dir":"Reference","previous_headings":"","what":"Method get_blocks()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Compiles returns content blocks ReportCard Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_blocks(sep = NewpageBlock$new())"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"sep optional separator insert content block. Default NewpageBlock$new()object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"list() list TableBlock, TextBlock, PictureBlock NewpageBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-reset-","dir":"Reference","previous_headings":"","what":"Method reset()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Resets Reporter, removing ReportCard objects metadata.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$reset()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-remove-cards-","dir":"Reference","previous_headings":"","what":"Method remove_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Removes specific ReportCard objects Reporter indices.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$remove_cards(ids = NULL)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"ids (integer(id)) indexes cards","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-swap-cards-","dir":"Reference","previous_headings":"","what":"Method swap_cards()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Swaps positions two ReportCard objects within Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$swap_cards(start, end)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"start (integer) index first card end (integer) index second card","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-6","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-get-reactive-add-card-","dir":"Reference","previous_headings":"","what":"Method get_reactive_add_card()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Gets current value reactive variable adding cards.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-7","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_reactive_add_card()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-7","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"reactive_add_card current numeric value reactive variable.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"library(shiny) isolate(Reporter$new()$get_reactive_add_card())"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-get-metadata-","dir":"Reference","previous_headings":"","what":"Method get_metadata()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Get metadata associated Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-8","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-8","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"named list metadata appended.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-append-metadata-","dir":"Reference","previous_headings":"","what":"Method append_metadata()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Appends metadata Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-9","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$append_metadata(meta)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-4","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"meta (named list) metadata appended.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-9","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-from-reporter-","dir":"Reference","previous_headings":"","what":"Method from_reporter()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reinitializes Reporter instance copying report cards metadata another Reporter.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-10","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$from_reporter(reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-5","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"reporter (Reporter) instance copy .","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-10","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"invisibly self","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() reporter$from_reporter(reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Convert Reporter list transfer associated files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-11","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$to_list(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-6","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir (character(1)) path directory files copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-11","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"named list representing Reporter instance, including version information, metadata, report cards.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") dir.create(tmp_dir) reporter$to_list(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reinitializes Reporter list representation associated files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-12","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$from_list(rlist, output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-7","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"rlist (named list) representing Reporter instance. output_dir (character(1)) path directory files copied.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-12","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-6","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") unlink(tmp_dir, recursive = TRUE) dir.create(tmp_dir) reporter$from_list(reporter$to_list(tmp_dir), tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-to-jsondir-","dir":"Reference","previous_headings":"","what":"Method to_jsondir()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Serializes Reporter JSON file copies associated files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-13","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$to_jsondir(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-8","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir (character(1)) path directory files copied, JSON statics.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-13","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-7","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) reporter$to_jsondir(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-from-jsondir-","dir":"Reference","previous_headings":"","what":"Method from_jsondir()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Reinitializes Reporter JSON file files specified directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-14","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$from_jsondir(output_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-9","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"output_dir (character(1)) path directory files, JSON statics.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-14","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"examples-8","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) unlink(list.files(tmp_dir, recursive = TRUE)) reporter$to_jsondir(tmp_dir) reporter$from_jsondir(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-set-id-","dir":"Reference","previous_headings":"","what":"Method set_id()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Set Reporter id Optionally add id Reporter compared rebuilt list. id added downloaded file name.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-15","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$set_id(id)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-10","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"id (character(1)) Report id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-15","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-get-id-","dir":"Reference","previous_headings":"","what":"Method get_id()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"Get Reporter id","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-16","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$get_id()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"returns-16","dir":"Reference","previous_headings":"","what":"Returns","title":"Reporter: An R6 class for managing report cards — Reporter","text":"character(1) Reporter id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"Reporter: An R6 class for managing report cards — Reporter","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"usage-17","dir":"Reference","previous_headings":"","what":"Usage","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"Reporter$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"arguments-11","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reporter: An R6 class for managing report cards — Reporter","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/Reporter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Reporter: An R6 class for managing report cards — Reporter","text":"","code":"library(ggplot2) library(rtables) card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\", \"header2\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) library(ggplot2) library(rtables) card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\", \"header2\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) reporter$get_cards() #> [[1]] #> #> Public: #> append_content: function (content) #> append_metadata: function (key, value) #> append_plot: function (plot, dim = NULL) #> append_rcode: function (text, ...) #> append_table: function (table) #> append_text: function (text, style = TextBlock$new()$get_available_styles()[1]) #> clone: function (deep = FALSE) #> from_list: function (card, output_dir) #> get_content: function () #> get_metadata: function () #> get_name: function () #> initialize: function () #> reset: function () #> set_name: function (name) #> to_list: function (output_dir) #> Private: #> content: list #> deep_clone: function (name, value) #> dispatch_block: function (block_class) #> metadata: list #> name: #> #> [[2]] #> #> Public: #> append_content: function (content) #> append_metadata: function (key, value) #> append_plot: function (plot, dim = NULL) #> append_rcode: function (text, ...) #> append_table: function (table) #> append_text: function (text, style = TextBlock$new()$get_available_styles()[1]) #> clone: function (deep = FALSE) #> from_list: function (card, output_dir) #> get_content: function () #> get_metadata: function () #> get_name: function () #> initialize: function () #> reset: function () #> set_name: function (name) #> to_list: function (output_dir) #> Private: #> content: list #> deep_clone: function (name, value) #> dispatch_block: function (block_class) #> metadata: list #> name: #> library(ggplot2) library(rtables) card1 <- ReportCard$new() card1$append_text(\"Header 2 text\", \"header2\") card1$append_text(\"A paragraph of default text\", \"header2\") card1$append_plot( ggplot(iris, aes(x = Petal.Length)) + geom_histogram() ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. card2 <- ReportCard$new() card2$append_text(\"Header 2 text\", \"header2\") card2$append_text(\"A paragraph of default text\", \"header2\") lyt <- analyze(split_rows_by(basic_table(), \"Day\"), \"Ozone\", afun = mean) table_res2 <- build_table(lyt, airquality) #> Split var [Day] was not character or factor. Converting to factor card2$append_table(table_res2) card2$append_table(iris) reporter <- Reporter$new() reporter$append_cards(list(card1, card2)) reporter$get_blocks() #> [[1]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Header 2 text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[2]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: A paragraph of default text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[3]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> get_dim: function () #> get_title: function () #> initialize: function (plot) #> set_content: function (content) #> set_dim: function (dim) #> set_title: function (title) #> to_list: function (output_dir) #> Private: #> content: /tmp/Rtmpvcn05j/file3936d104858.png #> deep_clone: function (name, value) #> dim: 800 600 #> supported_plots: ggplot grob trellis Heatmap #> title: #> type: #> #> [[4]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_content: function () #> initialize: function () #> set_content: function (content) #> to_list: function () #> Private: #> content: #> \\newpage #> #> deep_clone: function (name, value) #> #> [[5]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: Header 2 text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[6]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> from_list: function (x) #> get_available_styles: function () #> get_content: function () #> get_style: function () #> initialize: function (content = character(0), style = private$styles[1]) #> set_content: function (content) #> set_style: function (style) #> to_list: function () #> Private: #> content: A paragraph of default text #> deep_clone: function (name, value) #> style: header2 #> styles: default header2 header3 verbatim #> #> [[7]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> initialize: function (table) #> set_content: function (content) #> to_list: function (output_dir) #> Private: #> content: /tmp/Rtmpvcn05j/file39342ca252f.rds #> deep_clone: function (name, value) #> supported_tables: data.frame rtables TableTree ElementaryTable listing_df #> #> [[8]] #> #> Inherits from: #> Public: #> clone: function (deep = FALSE) #> finalize: function () #> from_list: function (x, output_dir) #> get_content: function () #> initialize: function (table) #> set_content: function (content) #> to_list: function (output_dir) #> Private: #> content: /tmp/Rtmpvcn05j/file3935c961792.rds #> deep_clone: function (name, value) #> supported_tables: data.frame rtables TableTree ElementaryTable listing_df #> ## ------------------------------------------------ ## Method `Reporter$new` ## ------------------------------------------------ reporter <- Reporter$new() ## ------------------------------------------------ ## Method `Reporter$get_reactive_add_card` ## ------------------------------------------------ library(shiny) isolate(Reporter$new()$get_reactive_add_card()) #> [1] 0 ## ------------------------------------------------ ## Method `Reporter$get_metadata` ## ------------------------------------------------ reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata() #> $sth #> [1] \"sth\" #> ## ------------------------------------------------ ## Method `Reporter$append_metadata` ## ------------------------------------------------ reporter <- Reporter$new()$append_metadata(list(sth = \"sth\")) reporter$get_metadata() #> $sth #> [1] \"sth\" #> ## ------------------------------------------------ ## Method `Reporter$from_reporter` ## ------------------------------------------------ reporter <- Reporter$new() reporter$from_reporter(reporter) ## ------------------------------------------------ ## Method `Reporter$to_list` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") dir.create(tmp_dir) reporter$to_list(tmp_dir) #> $name #> [1] \"teal Reporter\" #> #> $version #> [1] \"1\" #> #> $id #> [1] \"\" #> #> $cards #> list() #> #> $metadata #> list() #> ## ------------------------------------------------ ## Method `Reporter$from_list` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"testdir\") unlink(tmp_dir, recursive = TRUE) dir.create(tmp_dir) reporter$from_list(reporter$to_list(tmp_dir), tmp_dir) ## ------------------------------------------------ ## Method `Reporter$to_jsondir` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) reporter$to_jsondir(tmp_dir) #> [1] \"/tmp/Rtmpvcn05j/jsondir\" ## ------------------------------------------------ ## Method `Reporter$from_jsondir` ## ------------------------------------------------ reporter <- Reporter$new() tmp_dir <- file.path(tempdir(), \"jsondir\") dir.create(tmp_dir) #> Warning: '/tmp/Rtmpvcn05j/jsondir' already exists unlink(list.files(tmp_dir, recursive = TRUE)) reporter$to_jsondir(tmp_dir) #> [1] \"/tmp/Rtmpvcn05j/jsondir\" reporter$from_jsondir(tmp_dir)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"TableBlock — TableBlock","title":"TableBlock — TableBlock","text":"Specialized FileBlock managing table content reports. designed handle various table formats, converting consistent, document-ready format (e.g., flextable) inclusion reports.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"super-classes","dir":"Reference","previous_headings":"","what":"Super classes","title":"TableBlock — TableBlock","text":"teal.reporter::ContentBlock -> teal.reporter::FileBlock -> TableBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"TableBlock — TableBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::FileBlock$finalize() teal.reporter::FileBlock$from_list() teal.reporter::FileBlock$to_list()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"TableBlock — TableBlock","text":"TableBlock$new() TableBlock$set_content() TableBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"TableBlock — TableBlock","text":"Initialize TableBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"TableBlock — TableBlock","text":"","code":"TableBlock$new(table)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"TableBlock — TableBlock","text":"table (data.frame rtables TableTree ElementaryTable listing_df) table assigned TableBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"TableBlock — TableBlock","text":"Object class TableBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"method-set-content-","dir":"Reference","previous_headings":"","what":"Method set_content()","title":"TableBlock — TableBlock","text":"Sets content TableBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"TableBlock — TableBlock","text":"","code":"TableBlock$set_content(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"TableBlock — TableBlock","text":"content (data.frame rtables TableTree ElementaryTable listing_df) table assigned TableBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"TableBlock — TableBlock","text":"Raises error argument table-like object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"TableBlock — TableBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TableBlock — TableBlock","text":"","code":"TableBlock <- getFromNamespace(\"TableBlock\", \"teal.reporter\") block <- TableBlock$new() block$set_content(iris)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"TableBlock — TableBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"TableBlock — TableBlock","text":"","code":"TableBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"TableBlock — TableBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TableBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TableBlock — TableBlock","text":"","code":"## ------------------------------------------------ ## Method `TableBlock$set_content` ## ------------------------------------------------ TableBlock <- getFromNamespace(\"TableBlock\", \"teal.reporter\") block <- TableBlock$new() block$set_content(iris)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":null,"dir":"Reference","previous_headings":"","what":"TextBlock — TextBlock","title":"TextBlock — TextBlock","text":"Specialized ContentBlock embedding styled text within reports. supports multiple styling options accommodate various text roles, headers verbatim text, report content.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"super-class","dir":"Reference","previous_headings":"","what":"Super class","title":"TextBlock — TextBlock","text":"teal.reporter::ContentBlock -> TextBlock","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"methods","dir":"Reference","previous_headings":"","what":"Methods","title":"TextBlock — TextBlock","text":"teal.reporter::ContentBlock$get_content() teal.reporter::ContentBlock$set_content()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"public-methods","dir":"Reference","previous_headings":"","what":"Public methods","title":"TextBlock — TextBlock","text":"TextBlock$new() TextBlock$set_style() TextBlock$get_style() TextBlock$get_available_styles() TextBlock$from_list() TextBlock$to_list() TextBlock$clone()","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-new-","dir":"Reference","previous_headings":"","what":"Method new()","title":"TextBlock — TextBlock","text":"Initialize TextBlock object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$new(content = character(0), style = private$styles[1])"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"content (character) string assigned TextBlock style (character(1)) one : \"default\", \"header2\", \"header3\" \"verbatim\"","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"TextBlock — TextBlock","text":"Constructs TextBlock object content default style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"returns","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"Object class TextBlock, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-set-style-","dir":"Reference","previous_headings":"","what":"Method set_style()","title":"TextBlock — TextBlock","text":"Sets style TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage-1","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$set_style(style)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"arguments-1","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"style (character(1)) one : \"default\", \"header2\", \"header3\" \"verbatim\"","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"details-1","dir":"Reference","previous_headings":"","what":"Details","title":"TextBlock — TextBlock","text":"style bearing rendering block.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"returns-1","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"examples-1","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$set_style(\"header2\")"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-get-style-","dir":"Reference","previous_headings":"","what":"Method get_style()","title":"TextBlock — TextBlock","text":"Get style TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage-2","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$get_style()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"returns-2","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"character(1) style TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"examples-2","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_style()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-get-available-styles-","dir":"Reference","previous_headings":"","what":"Method get_available_styles()","title":"TextBlock — TextBlock","text":"Get available array styles available TextBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage-3","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$get_available_styles()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"returns-3","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"character array styles.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"examples-3","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_available_styles()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-from-list-","dir":"Reference","previous_headings":"","what":"Method from_list()","title":"TextBlock — TextBlock","text":"Create TextBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage-4","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$from_list(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"arguments-2","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"x (named list) two fields text style. Use get_available_styles method get possible styles.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"returns-4","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"self, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"examples-4","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$from_list(list(text = \"sth\", style = \"default\"))"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-to-list-","dir":"Reference","previous_headings":"","what":"Method to_list()","title":"TextBlock — TextBlock","text":"Convert TextBlock list.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage-5","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"returns-5","dir":"Reference","previous_headings":"","what":"Returns","title":"TextBlock — TextBlock","text":"named list text style.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"examples-5","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$to_list()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"method-clone-","dir":"Reference","previous_headings":"","what":"Method clone()","title":"TextBlock — TextBlock","text":"objects class cloneable method.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"usage-6","dir":"Reference","previous_headings":"","what":"Usage","title":"TextBlock — TextBlock","text":"","code":"TextBlock$clone(deep = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"arguments-3","dir":"Reference","previous_headings":"","what":"Arguments","title":"TextBlock — TextBlock","text":"deep Whether make deep clone.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/TextBlock.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"TextBlock — TextBlock","text":"","code":"## ------------------------------------------------ ## Method `TextBlock$new` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() ## ------------------------------------------------ ## Method `TextBlock$set_style` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$set_style(\"header2\") ## ------------------------------------------------ ## Method `TextBlock$get_style` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_style() #> [1] \"default\" ## ------------------------------------------------ ## Method `TextBlock$get_available_styles` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$get_available_styles() #> [1] \"default\" \"header2\" \"header3\" \"verbatim\" ## ------------------------------------------------ ## Method `TextBlock$from_list` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$from_list(list(text = \"sth\", style = \"default\")) ## ------------------------------------------------ ## Method `TextBlock$to_list` ## ------------------------------------------------ TextBlock <- getFromNamespace(\"TextBlock\", \"teal.reporter\") block <- TextBlock$new() block$to_list() #> $text #> character(0) #> #> $style #> [1] \"default\" #>"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/add_card_button.html","id":null,"dir":"Reference","previous_headings":"","what":"Add card button module — add_card_button","title":"Add card button module — add_card_button","text":"Provides button add views/cards report. details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/add_card_button.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Add card button module — add_card_button","text":"","code":"add_card_button_ui(id) add_card_button_srv(id, reporter, card_fun)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/add_card_button.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Add card button module — add_card_button","text":"id (character(1)) shiny module's id. reporter (Reporter) instance. card_fun (function) returns ReportCard instance. See Details.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/add_card_button.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Add card button module — add_card_button","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/add_card_button.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Add card button module — add_card_button","text":"card_fun function designed create new ReportCard instance optionally customize : card parameter allows specifying custom default ReportCard instance. Use comment parameter add comment card via card$append_text() - card_fun comment parameter, comment Add Card UI module added end content card. label parameter enables customization card's name content card$append_text()- card_fun label parameter, card name set name passed Add Card UI module, text added content card. module supports using subclass ReportCard added flexibility. subclass instance passed default value card argument card_fun function. See :","code":"CustomReportCard <- R6::R6Class( classname = \"CustomReportCard\", inherit = teal.reporter::ReportCard ) custom_function <- function(card = CustomReportCard$new()) { card }"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":null,"dir":"Reference","previous_headings":"","what":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"Converts named list yaml header Rmd, handling output types arguments defined rmarkdown package. function simplifies process generating yaml headers.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"","code":"as_yaml_auto( input_list, as_header = TRUE, convert_logi = TRUE, multi_output = FALSE, silent = FALSE )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"input_list (named list) non nested slots names values compatible Rmd yaml header. as_header (logical(1)) optionally wrap result internal md_header(), default TRUE. convert_logi (logical(1)) convert character values logical, recognized quoted yaml logical values , default TRUE. multi_output (logical(1)) multi output slots input argument, default FALSE. silent (logical(1)) suppress messages warnings, default FALSE.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"character rmd_yaml_header class, result yaml::.yaml, optionally wrapped internal md_header().","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"function processes non-nested (flat) named list yaml header Rmd document. supports standard Rmd yaml header fields, including author, date, title, subtitle, abstract, keywords, subject, description, category, lang. Additionally, handles output field types arguments defined rmarkdown package.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"non-nested lists automatically parsed. Nested lists require direct processing yaml::.yaml.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/as_yaml_auto.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parse a named list to yaml header for an Rmd file — as_yaml_auto","text":"","code":"# nested so using yaml::as.yaml directly as_yaml_auto( list(author = \"\", output = list(pdf_document = list(toc = TRUE))) ) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> --- # auto parsing for a flat list, like shiny input input <- list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = TRUE) as_yaml_auto(input) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = \"TRUE\")) #> The 'TRUE' value should be a logical, so it is automatically converted. #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(list( author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = TRUE, wrong = 2 )) #> Warning: Not recognized and skipped arguments: wrong #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = 2), silent = TRUE ) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: 2.0 #> --- input <- list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = \"True\") as_yaml_auto(input) #> The 'True' value should be a logical, so it is automatically converted. #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(input, convert_logi = TRUE, silent = TRUE) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(input, silent = TRUE) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- as_yaml_auto(input, convert_logi = FALSE, silent = TRUE) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: 'True' #> --- as_yaml_auto( list( author = \"\", output = \"pdf_document\", output = \"html_document\", toc = TRUE, keep_tex = TRUE ), multi_output = TRUE ) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> html_document: #> toc: yes #> --- as_yaml_auto( list( author = \"\", output = \"pdf_document\", output = \"html_document\", toc = \"True\", keep_tex = TRUE ), multi_output = TRUE ) #> The 'True' value should be a logical, so it is automatically converted. #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> html_document: #> toc: yes #> ---"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/conv_str_logi.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"Converts single character string representing yaml boolean value logical value R.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/conv_str_logi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"","code":"conv_str_logi( input, name = \"\", pos_logi = c(\"TRUE\", \"true\", \"True\", \"yes\", \"y\", \"Y\", \"on\"), neg_logi = c(\"FALSE\", \"false\", \"False\", \"no\", \"n\", \"N\", \"off\"), silent = TRUE )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/conv_str_logi.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"input (character(1)) name (charcter(1)) pos_logi (character) vector yaml values treated TRUE. neg_logi (character) vector yaml values treated FALSE. silent (logical(1)) suppress messages warnings.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/conv_str_logi.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"input argument appropriate logical value.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/conv_str_logi.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert yaml representation of a boolean strings to logical Values — conv_str_logi","text":"","code":"conv_str_logi <- getFromNamespace(\"conv_str_logi\", \"teal.reporter\") conv_str_logi(\"TRUE\") #> [1] TRUE conv_str_logi(\"True\") #> [1] TRUE conv_str_logi(\"off\") #> [1] FALSE conv_str_logi(\"n\") #> [1] FALSE conv_str_logi(\"sth\") #> [1] \"sth\""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/download_report_button.html","id":null,"dir":"Reference","previous_headings":"","what":"Download report button module — download_report_button","title":"Download report button module — download_report_button","text":"Provides button triggers downloading report. information, refer vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/download_report_button.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download report button module — download_report_button","text":"","code":"download_report_button_ui(id) download_report_button_srv( id, reporter, global_knitr = getOption(\"teal.reporter.global_knitr\"), rmd_output = c(html = \"html_document\", pdf = \"pdf_document\", powerpoint = \"powerpoint_presentation\", word = \"word_document\"), rmd_yaml_args = list(author = \"NEST\", title = \"Report\", date = as.character(Sys.Date()), output = \"html_document\", toc = FALSE) )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/download_report_button.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download report button module — download_report_button","text":"id (character(1)) shiny module's id. reporter (Reporter) instance. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI. rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/download_report_button.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download report button module — download_report_button","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/download_report_button.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Download report button module — download_report_button","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_bs_version.html","id":null,"dir":"Reference","previous_headings":"","what":"Get bootstrap current version — get_bs_version","title":"Get bootstrap current version — get_bs_version","text":"Get bootstrap current version","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_bs_version.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get bootstrap current version — get_bs_version","text":"","code":"get_bs_version()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_bs_version.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Get bootstrap current version — get_bs_version","text":"work properly mainly inside tag .renderHook","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_yaml_field.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract field from yaml text — get_yaml_field","title":"Extract field from yaml text — get_yaml_field","text":"Parses yaml text, extracting specified field. Returns list names list; otherwise, field .","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_yaml_field.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract field from yaml text — get_yaml_field","text":"","code":"get_yaml_field(yaml_text, field_name)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_yaml_field.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract field from yaml text — get_yaml_field","text":"yaml_text (rmd_yaml_header character) vector containing yaml text. field_name (character) name field extract.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/get_yaml_field.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract field from yaml text — get_yaml_field","text":"field list, returns names elements list; otherwise, returns extracted field.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/md_header.html","id":null,"dir":"Reference","previous_headings":"","what":"Create markdown header from yaml string — md_header","title":"Create markdown header from yaml string — md_header","text":"function wraps yaml-formatted string Markdown header delimiters.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/md_header.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create markdown header from yaml string — md_header","text":"","code":"md_header(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/md_header.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create markdown header from yaml string — md_header","text":"x (character) yaml formatted string.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/md_header.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create markdown header from yaml string — md_header","text":"","code":"library(yaml) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(pdf_document = list(keep_tex = TRUE)) ) md_header <- getFromNamespace(\"md_header\", \"teal.reporter\") md_header(as.yaml(yaml)) #> [1] \"---\\nauthor: \\\"NEST\\\"\\ntitle: \\\"Report\\\"\\ndate: \\\"07/04/2019\\\"\\noutput:\\n pdf_document:\\n keep_tex: yes\\n---\\n\""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/panel_item.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Panel group widget — panel_item","text":"","code":"panel_item(title, ..., collapsed = TRUE, input_id = NULL)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/panel_item.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Panel group widget — panel_item","text":"title (character) title panel ... content panel collapsed (logical, optional) whether initially collapse panel input_id (character, optional) name panel item element. supplied, register shiny input variable indicates whether panel item open collapsed accessed input$input_id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/panel_item.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Panel group widget — panel_item","text":"shiny.tag.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/print.rmd_yaml_header.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"","code":"# S3 method for class 'rmd_yaml_header' print(x, ...)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/print.rmd_yaml_header.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"x (rmd_yaml_header) class object. ... optional text.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/print.rmd_yaml_header.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/print.rmd_yaml_header.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Print method for the yaml_header class — print.rmd_yaml_header","text":"","code":"input <- list(author = \"\", output = \"pdf_document\", toc = TRUE, keep_tex = TRUE) out <- as_yaml_auto(input) out #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> --- print(out) #> --- #> author: '' #> output: #> pdf_document: #> toc: yes #> keep_tex: yes #> ---"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_srv.html","id":null,"dir":"Reference","previous_headings":"","what":"Server to Load Reporter — report_load_srv","title":"Server to Load Reporter — report_load_srv","text":"Server load ReporterCard(s) Reporter details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_srv.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Server to Load Reporter — report_load_srv","text":"","code":"report_load_srv(id, reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_srv.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Server to Load Reporter — report_load_srv","text":"id character(1) shiny module's id. reporter Reporter instance.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_srv.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Server to Load Reporter — report_load_srv","text":"shiny::moduleServer","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_ui.html","id":null,"dir":"Reference","previous_headings":"","what":"User Interface to Load Reporter — report_load_ui","title":"User Interface to Load Reporter — report_load_ui","text":"Button upload ReporterCard(s) Reporter. details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_ui.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"User Interface to Load Reporter — report_load_ui","text":"","code":"report_load_ui(id)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_ui.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"User Interface to Load Reporter — report_load_ui","text":"id character(1) shiny module's id.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_load_ui.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"User Interface to Load Reporter — report_load_ui","text":"shiny::tagList","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_render_and_compress.html","id":null,"dir":"Reference","previous_headings":"","what":"Render the report — report_render_and_compress","title":"Render the report — report_render_and_compress","text":"Render report zip created directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_render_and_compress.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Render the report — report_render_and_compress","text":"","code":"report_render_and_compress( reporter, input_list, global_knitr, file = tempdir() )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_render_and_compress.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Render the report — report_render_and_compress","text":"reporter (Reporter) instance. input_list (list) like shiny input converted regular named list. global_knitr (list) global knitr parameters, like echo. local parameter set priority. file (character(1)) copy returned directory.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/report_render_and_compress.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Render the report — report_render_and_compress","text":"file argument, invisibly.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_download_inputs.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the custom list of UI inputs — reporter_download_inputs","title":"Get the custom list of UI inputs — reporter_download_inputs","text":"Get custom list UI inputs","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_download_inputs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the custom list of UI inputs — reporter_download_inputs","text":"","code":"reporter_download_inputs(rmd_yaml_args, rmd_output, showrcode, session)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_download_inputs.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the custom list of UI inputs — reporter_download_inputs","text":"rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_previewer.html","id":null,"dir":"Reference","previous_headings":"","what":"Report previewer module — reporter_previewer","title":"Report previewer module — reporter_previewer","text":"Module offers functionalities visualize, manipulate, interact report cards added report. includes previewer interface see cards options modify report downloading. Cards saved shiny bookmarking mechanism. details see vignette: vignette(\"previewerReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_previewer.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Report previewer module — reporter_previewer","text":"","code":"reporter_previewer_ui(id) reporter_previewer_srv( id, reporter, global_knitr = getOption(\"teal.reporter.global_knitr\"), rmd_output = c(html = \"html_document\", pdf = \"pdf_document\", powerpoint = \"powerpoint_presentation\", word = \"word_document\"), rmd_yaml_args = list(author = \"NEST\", title = \"Report\", date = as.character(Sys.Date()), output = \"html_document\", toc = FALSE), previewer_buttons = c(\"download\", \"load\", \"reset\") )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_previewer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Report previewer module — reporter_previewer","text":"id (character(1)) shiny module instance id. reporter (Reporter) instance. global_knitr (list) knitr parameters (passed knitr::opts_chunk$set) customizing rendering process. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI. rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument. previewer_buttons (character) set modules include c(\"download\", \"load\", \"reset\") possible values \"download\" required. Default c(\"download\", \"load\", \"reset\")","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_previewer.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Report previewer module — reporter_previewer","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reporter_previewer.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Report previewer module — reporter_previewer","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reset_report_button.html","id":null,"dir":"Reference","previous_headings":"","what":"Reset report button module — reset_report_button","title":"Reset report button module — reset_report_button","text":"Provides button triggers resetting report content. information, refer vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reset_report_button.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Reset report button module — reset_report_button","text":"","code":"reset_report_button_ui(id, label = NULL) reset_report_button_srv(id, reporter)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reset_report_button.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Reset report button module — reset_report_button","text":"id (character(1)) shiny module instance id. label (character(1)) label icon. default NULL. reporter (Reporter) instance.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/reset_report_button.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Reset report button module — reset_report_button","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_output_arguments.html","id":null,"dir":"Reference","previous_headings":"","what":"Get document output arguments from the rmarkdown package — rmd_output_arguments","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"Retrieves arguments specified document output type rmarkdown package.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_output_arguments.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"","code":"rmd_output_arguments(output_name, default_values = FALSE)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_output_arguments.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"output_name (character) rmarkdown output name. default_values (logical(1)) return default values argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_output_arguments.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get document output arguments from the rmarkdown package — rmd_output_arguments","text":"","code":"rmd_output_arguments(\"pdf_document\") #> [1] \"toc\" \"toc_depth\" \"number_sections\" #> [4] \"fig_width\" \"fig_height\" \"fig_crop\" #> [7] \"fig_caption\" \"dev\" \"df_print\" #> [10] \"highlight\" \"template\" \"keep_tex\" #> [13] \"keep_md\" \"latex_engine\" \"citation_package\" #> [16] \"includes\" \"md_extensions\" \"output_extensions\" #> [19] \"pandoc_args\" \"extra_dependencies\" rmd_output_arguments(\"pdf_document\", TRUE) #> $toc #> [1] FALSE #> #> $toc_depth #> [1] 2 #> #> $number_sections #> [1] FALSE #> #> $fig_width #> [1] 6.5 #> #> $fig_height #> [1] 4.5 #> #> $fig_crop #> [1] \"auto\" #> #> $fig_caption #> [1] TRUE #> #> $dev #> [1] \"pdf\" #> #> $df_print #> [1] \"default\" #> #> $highlight #> [1] \"default\" #> #> $template #> [1] \"default\" #> #> $keep_tex #> [1] FALSE #> #> $keep_md #> [1] FALSE #> #> $latex_engine #> [1] \"pdflatex\" #> #> $citation_package #> c(\"default\", \"natbib\", \"biblatex\") #> #> $includes #> NULL #> #> $md_extensions #> NULL #> #> $output_extensions #> NULL #> #> $pandoc_args #> NULL #> #> $extra_dependencies #> NULL #>"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_outputs.html","id":null,"dir":"Reference","previous_headings":"","what":"Get document output types from the rmarkdown package — rmd_outputs","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"Retrieves vector available document output types rmarkdown package, pdf_document, html_document, etc.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_outputs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"","code":"rmd_outputs()"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_outputs.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"character vector.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/rmd_outputs.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get document output types from the rmarkdown package — rmd_outputs","text":"","code":"rmd_outputs() #> [1] \"beamer_presentation\" \"context_document\" #> [3] \"github_document\" \"html_document\" #> [5] \"html_document_base\" \"html_extras_for_document\" #> [7] \"ioslides_presentation\" \"latex_document\" #> [9] \"md_document\" \"odt_document\" #> [11] \"pdf_document\" \"powerpoint_presentation\" #> [13] \"rtf_document\" \"slidy_presentation\" #> [15] \"word_document\""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/simple_reporter.html","id":null,"dir":"Reference","previous_headings":"","what":"Simple reporter module — simple_reporter","title":"Simple reporter module — simple_reporter","text":"Module provides compact UI server functions managing report shiny app. module combines functionalities adding cards report, downloading report, resetting report content. details see vignette: vignette(\"simpleReporter\", \"teal.reporter\").","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/simple_reporter.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Simple reporter module — simple_reporter","text":"","code":"simple_reporter_ui(id) simple_reporter_srv( id, reporter, card_fun, global_knitr = getOption(\"teal.reporter.global_knitr\"), rmd_output = c(html = \"html_document\", pdf = \"pdf_document\", powerpoint = \"powerpoint_presentation\", word = \"word_document\"), rmd_yaml_args = list(author = \"NEST\", title = \"Report\", date = as.character(Sys.Date()), output = \"html_document\", toc = FALSE) )"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/simple_reporter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Simple reporter module — simple_reporter","text":"id (character(1)) shiny module instance id. reporter (Reporter) instance. card_fun (function) returns ReportCard instance, function card argument optional comment argument. global_knitr (list) global knitr parameters customizing rendering process. rmd_output (character) vector rmarkdown output types, default possible pdf_document, html_document, powerpoint_presentation, word_document. vector named names appear UI. rmd_yaml_args (named list) Rmd yaml header fields default values. list result custom subset UI inputs download reporter functionality. Default list(author = \"NEST\", title = \"Report\", date = Sys.Date(), output = \"html_document\", toc = FALSE). list must include least \"output\" field. default value \"output\" rmd_output argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/simple_reporter.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Simple reporter module — simple_reporter","text":"NULL.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/simple_reporter.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Simple reporter module — simple_reporter","text":"access default values global_knitr parameter, use getOption('teal.reporter.global_knitr'). defaults include: echo = TRUE tidy.opts = list(width.cutoff = 60) tidy = TRUE formatR package installed, FALSE otherwise","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/simple_reporter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Simple reporter module — simple_reporter","text":"","code":"if (interactive()) { library(shiny) shinyApp( ui = fluidPage(simple_reporter_ui(\"simple\")), server = function(input, output, session) { simple_reporter_srv(\"simple\", Reporter$new(), function(card) card) } ) }"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/split_text_block.html","id":null,"dir":"Reference","previous_headings":"","what":"Divide text block into smaller blocks — split_text_block","title":"Divide text block into smaller blocks — split_text_block","text":"Split text block smaller blocks specified number lines.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/split_text_block.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Divide text block into smaller blocks — split_text_block","text":"","code":"split_text_block(x, n)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/split_text_block.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Divide text block into smaller blocks — split_text_block","text":"x (character) string containing input block text n (integer) number lines per block","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/split_text_block.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Divide text block into smaller blocks — split_text_block","text":"List character strings n lines element.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/split_text_block.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Divide text block into smaller blocks — split_text_block","text":"single character string containing text block multiple lines (separated \\n) split multiple strings n less lines .","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/teal.reporter-package.html","id":null,"dir":"Reference","previous_headings":"","what":"Reporting tools for shiny modules. — teal.reporter-package","title":"Reporting tools for shiny modules. — teal.reporter-package","text":"collection tools creating, previewing modifying reports shiny modules.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/reference/teal.reporter-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Reporting tools for shiny modules. — teal.reporter-package","text":"Maintainer: Dawid Kaledkowski dawid.kaledkowski@roche.com (ORCID) Authors: Kartikeya Kirar kartikeya.kirar@businesspartner.roche.com (ORCID) Marcin Kosinski marcin.kosinski.mk1@roche.com Maciej Nasinski Konrad Pagacz Mahmoud Hallal mahmoud.hallal@roche.com contributors: Chendi Liao chendi.liao@roche.com [reviewer] Dony Unardi unardid@gene.com [reviewer] F. Hoffmann-La Roche AG [copyright holder, funder]","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/to_flextable.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert content into a flextable — to_flextable","title":"Convert content into a flextable — to_flextable","text":"Converts supported table formats flextable enhanced formatting presentation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/to_flextable.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert content into a flextable — to_flextable","text":"","code":"to_flextable(content)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/to_flextable.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert content into a flextable — to_flextable","text":"content Supported formats: data.frame, rtables, TableTree, ElementaryTable, listing_df","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/to_flextable.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert content into a flextable — to_flextable","text":"flextable.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/to_flextable.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Convert content into a flextable — to_flextable","text":"Function merges cells colspan > 1, aligns columns center row names left, indents row names 10 times indentation.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/yaml_quoted.html","id":null,"dir":"Reference","previous_headings":"","what":"Mark strings for quotation in yaml serialization — yaml_quoted","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"function designed use yaml package explicitly, adds attribute character strings, indicating serialized double quotes.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/yaml_quoted.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"","code":"yaml_quoted(x)"},{"path":"https://insightsengineering.github.io/teal.reporter/reference/yaml_quoted.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"x (character)","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/reference/yaml_quoted.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Mark strings for quotation in yaml serialization — yaml_quoted","text":"","code":"library(yaml) yaml_quoted <- getFromNamespace(\"yaml_quoted\", \"teal.reporter\") yaml <- list( author = yaml_quoted(\"NEST\"), title = yaml_quoted(\"Report\"), date = yaml_quoted(\"07/04/2019\"), output = list(pdf_document = list(keep_tex = TRUE)) ) as.yaml(yaml) #> [1] \"author: \\\"NEST\\\"\\ntitle: \\\"Report\\\"\\ndate: \\\"07/04/2019\\\"\\noutput:\\n pdf_document:\\n keep_tex: yes\\n\""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"enhancements-0-3-1-9018","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.3.1.9018","text":"Report cards now included bookmarks. using shiny bookmarking mechanism, present report cards available restored application. Report can loaded back now. zip file report can loaded back restore Previewer state.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"tealreporter-031","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.3.1","title":"teal.reporter 0.3.1","text":"CRAN release: 2024-03-15","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"enhancements-0-3-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.3.1","text":"Added blocking “Download” buttons report rendering, using shinybusy package.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"tealreporter-030","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.3.0","title":"teal.reporter 0.3.0","text":"CRAN release: 2024-02-16","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"enhancements-0-3-0","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.3.0","text":"add_card_button_srv allows specify card_fun label parameter card’s title & content customization. Supports automatic Rcode formatting using suggested formatR package reports. Improve output PDF file format.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"tealreporter-021","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.2.1","title":"teal.reporter 0.2.1","text":"CRAN release: 2023-09-08","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"miscellaneous-0-2-1","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"teal.reporter 0.2.1","text":"Specify minimal version dependent packages. Updated TableBlock convert tables flextables show rendered report. Fixed CRAN requirements first CRAN submission. Removed manual pages non-exported objects. Fixed CRAN requirements first CRAN submission.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"new-features-0-2-0","dir":"Changelog","previous_headings":"","what":"New features","title":"teal.reporter 0.2.0","text":"Added new RcodeBlock block custom rmarkdown r chunk. Added collapsible panel Show R Code previewer. Added additional input needed decide “Show R Code” part rendered report. Added possibility add personalized card name adding card. Added support custom inputs download previewer modules.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"breaking-changes-0-2-0","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"teal.reporter 0.2.0","text":"Simplified reporter_previewer_ui contain just id argument.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"enhancements-0-2-0","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.2.0","text":"Changed modal button colors align purpose modals. Updated AddCardModule comment input active cursor adding card. Updated report previewer support preview multiline comment. Added support table contents reporter documents. Added support global knitr options render method Render class. Improved look remove card modal previewer module.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"miscellaneous-0-2-0","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"teal.reporter 0.2.0","text":"Updated append_src method TealReportCard add additional “R Code” Subtitle.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"new-features-0-1-1","dir":"Changelog","previous_headings":"","what":"New features","title":"teal.reporter 0.1.1","text":"Added Archiver class enables saving loading back Report shiny session.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"breaking-changes-0-1-1","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"teal.reporter 0.1.1","text":"Updated append_fs method TealReportCard accept list object.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"enhancements-0-1-1","dir":"Changelog","previous_headings":"","what":"Enhancements","title":"teal.reporter 0.1.1","text":"Added support ElementaryTree class append_table method ReportCard. Added additional validation card_fun evaluation. Added support arguments setup card_fun function add_card_button_srv module, card_fun subset possible arguments now. Added optional dim argument append_plot method ReportCard. Added support Heatmap plots PictureBlock. Updated append_encodings, append_src append_fs automatically add titles. Updated vignettes README content. Made document type names user friendly downloading report. Improved add reporter card button disabled clicked.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"bug-fixes-0-1-1","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"teal.reporter 0.1.1","text":"Fixed trellis plots caught set_content method PictureBlock.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"miscellaneous-0-1-1","dir":"Changelog","previous_headings":"","what":"Miscellaneous","title":"teal.reporter 0.1.1","text":"Added to_list from_list methods content related classes. Decoupled metadata content ReportCard.","code":""},{"path":"https://insightsengineering.github.io/teal.reporter/news/index.html","id":"tealreporter-010","dir":"Changelog","previous_headings":"","what":"teal.reporter 0.1.0","title":"teal.reporter 0.1.0","text":"Initialize package.","code":""}]