File: format.Rd

package info (click to toggle)
r-cran-simplermarkdown 0.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 392 kB
  • sloc: makefile: 2
file content (27 lines) | stat: -rw-r--r-- 846 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_eval.R
\name{format_traditional}
\alias{format_traditional}
\alias{format_copypaste}
\title{Format the result of running a block of code}
\usage{
format_traditional(x)

format_copypaste(x)
}
\arguments{
\item{x}{the result of running the code. See 'details' for the format.}
}
\value{
A character vector of length 1 with the formatted code.
}
\description{
Format the result of running a block of code
}
\details{
The input vector \code{x} should be a list. Each element of this list should
be a list with two elements: \code{input} and \code{output}. \code{input}
should contain the evaluated expression; this can be more than one line.
\code{output} should contain the output of the evaluation. When there is no
output this is character vector of length 0.
}