Learn R Programming

pandocfilters (version 0.1-6)

Code: Inline Code

Description

Constructs an inline object of type "Code".

Usage

Code(code, name = "", language = NULL, line_numbers = FALSE, start_from = 1)

Arguments

code

a character string giving the inline code

name

an optional character string giving the name of the inline code chunk

language

an optional character string giving the programming language

line_numbers

a logical which controls if line numbers should be used

start_from

an integer giving the first line number

Examples

Run this code
Code("lm(hello ~ world)", "my_r_inline_code", "R", TRUE, 0)
Code("lm(hello ~ world)")

Run the code above in your browser using DataLab