为什么我的方程式不在RPubs中渲染?

为什么我的方程式不在RPubs中渲染?,r,latex,rstudio,equation,R,Latex,Rstudio,Equation,我在RPresenter中有一张带有以下代码的幻灯片: The Math and Code behind it === * The application is instantly calculating the monthly payment via the following formula: $$(\text{Principal})\frac{(\text{Interest rate})(1+\text{interest rate})^\text{Term}}

我在RPresenter中有一张带有以下代码的幻灯片:

    The Math and Code behind it
    ===
    * The application is instantly calculating the monthly payment via the following formula:  

$$(\text{Principal})\frac{(\text{Interest rate})(1+\text{interest rate})^\text{Term}}{(1+\text{interest rate})^\text{Term}-1}$$  

 * **Principal** refers to the amount left after the downpayment (which is usually expressed as a percentage of the cost)
       * **Term** is the amount of time to pay the mortgage, usually 15 to 30 years
方程式代码

$$(\text{Principal})\frac{(\text{Interest rate})(1+\text{interest rate})^\text{Term}}{(1+\text{interest rate})^\text{Term}-1}$$  
在RStudio中渲染得很好,但当我将演示发布到RPubs时,它不会将其转换为方程式。乳胶仅显示为文本


你知道怎么解决这个问题吗?以下是呈现的演示文稿:

您需要将开头的$$替换为$$。从RPubs文档中引用以下内容:

要显示方程式并将其放置在自己的居中直线上,请使用两个美元符号,例如:

$$乳胶方程$$

例如,要精确显示泰勒级数,请执行以下操作:

[fa+\frac{fa}{1!}x-a+\frac{fa}{2!}x-a^{2}+\frac{fa}{3!}x-a^{3}+\ldots]

输入以下内容:

$$乳胶 fa+\frac{f'a}{1!}x-a+\frac{fa}{2!}x-a^{2}+\frac{f'}{3!}x-a^{3}+\ldots $$
现在我在尝试更新它时遇到以下错误:readBinconn中的错误,what=raw,n=contentLength:无效的'n'参数调用:rpubsUpload。。。uploadFunction->readResponse->rawToChar->readBin执行停止了任何想法?而且这个解决方案不起作用,我仍然会遇到同样的问题,即使等式是有效的