在 RStudio 中完全禁用 rmarkdown 的方程 [英] Completely disable equations for rmarkdown in RStudio
本文介绍了在 RStudio 中完全禁用 rmarkdown 的方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建一个 rmarkdown 文档,我必须在其中处理以美元为单位的经济数据.由于存在$"符号,我在尝试将我的文本解释为方程时遇到了 rmarkdown 问题.具体来说,我有两个主要问题:
I am trying to create an rmarkdown document where I have to work with economic data in US dollars. I have issues with rmarkdown trying to interpret my text as being equations because of the presence of the "$" sign. Specifically, I have two main issues:
- 我无法使用 RStudio 禁用方程的自动预览.这很烦人,因为当有自动预览时,我无法再使用
ctrl + enter
将选定的代码发送到控制台;我必须复制和粘贴.我尝试在 RStudio > 全局选项 > R Markdown 中禁用内联输出,但似乎没有参数影响下图所示的自动弹出窗口.
- I cannot disable the automatic preview of equations with RStudio. This is annoying because when there is an automatic preview, I can no longer send selected code to the console with
ctrl + enter
; I have to copy and paste. I have tried to disable outputs inline in RStudio > Global options > R Markdown, but no parameter seem to affect the automatic popup shown in the picture below.
- 当我编织到 HTML 时,我的文本被解释为一个等式.我不希望它被解释为一个方程(见下图).令人惊讶的是,我一直无法为此找到帮助:关于格式化方程的帮助太多了,但几乎没有关于如何禁用它们的帮助.
我在这里提供了一个针对此问题的最小可重现示例:
I provide here a minimal reproducible example for this issue:
---
title: "Untitled"
output: html_document
---
The amount of money is US$ billion `r 10` (2017 US$). On average, another thing costed US$ billion `r 50`.
推荐答案
您可以使用 \$
在文本中插入美元符号.
You can use \$
to insert a dollar symbol in your text.
这篇关于在 RStudio 中完全禁用 rmarkdown 的方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文