mkdVariableAssignment: mkdVariableAssignment

Description Usage Arguments Value Examples

Description

it includes a variable assignment in the report. NB: a call to the "mkdCodeChunkSt" has to be done before using it.

Usage

1
mkdVariableAssignment(object, variable.name, variable.object.name, show)

Arguments

object

an easyreporting class object

variable.name

a string indicating the name of the variabe to store in the report. (This can be changed here, but further uses of the variable needs to take into account the variable name change).

variable.object.name

the name of the already existing variable. (This cannot be canged.)

show

a boolean indicating if to show the message before writing it into the rmardown file.

Value

none

Examples

1
2
3
4
5
6
7
8
rd <- easyreporting(filenamePath="./project_report",
                        title="example_report", author=c("It's me"))
## leaving the default options to the code chunk
mkdCodeChunkSt(rd)
## adding a variable assignement
variable <- 1
mkdVariableAssignment(rd, "variable", "variable", show=TRUE)
mkdCodeChunkEnd(rd)

easyreporting documentation built on Nov. 8, 2020, 8:01 p.m.