mkdVariableAssignment {easyreporting} | R Documentation

## mkdVariableAssignment

### Description

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

### Usage

    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

    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)

[Package easyreporting version 0.99.17 Index]