regressoR (version 1.1.8)

insert_report: insert_report

Description

inserts an element in the report in the current section.

Usage

insert_report(id, title = NA, ..., interpretation = TRUE,
  is.chunk = TRUE, add = FALSE)

Arguments

id

a string with the key of what is inserted in the report.

title

the title of the content, if there is no title is NA.

...

the content to be inserted.

interpretation

a logical value indicating whether a label has to be inserted for interpretation.

is.chunk

a logical value indicating whether the content has to be enclosed in a chunk.

add

a logical value indicating if the content has to be added to what is a before.

Examples

Run this code
# NOT RUN {
new_report(iris, "iris")
insert_report("1_part", 'Title 1', 'head(iris)\n', 'summary(iris)')
get_report()
clean_report()

# }

Run the code above in your browser using DataCamp Workspace