简体   繁体   English

如何增加标题字体大小并从输出中删除方括号

[英]How to Increase Header font size and remove Square bracket from output

I am trying to increase the font of the header, remove the square bracket and the double quotation mark, in my report without any success.我试图增加标题的字体,删除方括号和双引号,在我的报告中没有任何成功。

Is there an efficient way to achieve this?有没有一种有效的方法来实现这一目标?

The code is I ran is shown below:我运行的代码如下所示:

```{r, echo=FALSE, comment=NA, size='huge'}
filename<-'C:\\Users\\Desktop\\Title.txt'
readChar(filename,nchars=1e6)
```

The output I got is shown below:我得到的输出如下所示:

[1] "Seasonal Events: Sales of Gift Cards and Chocolate During Festive Period
    in Rural Mons"

The expected result I want( Though not necessary bold face but I want the size to be bigger than default):我想要的预期结果(虽然不需要粗体,但我希望尺寸大于默认值):

Seasonal Events: Sales of Gift cards and Chocolate During Festive Period in Rural Mons.季节性活动:节日期间在农村蒙斯销售礼品卡和巧克力。

```{r, echo=FALSE, comment=NA, size='huge', results="asis"}
filename<-'C:\\Users\\Desktop\\Title.txt'
cat("<h3>", readChar(filename,nchars=1e6), "</h3>\n")
```

ought to do it应该这样做

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM