奇怪的数字输出rmarkdown r

奇怪的数字输出rmarkdown r,r,r-markdown,R,R Markdown,我在rmarkdown中遇到数字格式问题。以下是我的示例代码: --- title: "Untitled" author: "me" date: "10/8/2017" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) num <- 11111 ``` here is the number: `r num` 我想要这个输出: Untitled me 10/

我在rmarkdown中遇到数字格式问题。以下是我的示例代码:

---
title: "Untitled"
author: "me"
date: "10/8/2017"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
num <- 11111
```

here is the number: `r num`
我想要这个输出:

Untitled
me

10/8/2017

here is the number: 11111

只要替换
num,如果您每次尝试使用一个以上的数字替换不同的值:1、11、111、1111、11111,您将看到科学符号在11111处“起作用”。这由
选项(scipen=n)
控制,其中默认情况下
n=0
n
的较大值将抑制科学记数法。请参见
?选项
Untitled
me

10/8/2017

here is the number: 11111