Skip to content

R markdown error when use \partial #2522

@hunghx12

Description

@hunghx12

Hi

The issue is just as simple as the title. Whenever I use \partial in my markdown, R can't knit, even though it can be viewed properly on the preview popup.

Here is the equation I wrote in R markdown:

$$ \frac{\partial l(X \mid \mu_x)}{\partial \mu_x} $$

The error message was
! Missing $ inserted. <inserted text> $ l.425 ...\partial l(X \mid \mu_x)}{\partial \mu_x}

Here is the session info:

R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.0

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
htmltools_0.5.6.1 jquerylib_0.1.4 jsonlite_1.8.7 knitr_1.44
labeling_0.4.3 latex2exp_0.9.6 R6_2.5.1 rmarkdown_2.25
utf8_1.2.3 utils_4.3.1 xfun_0.40 yaml_2.3.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprexneeds a minimal reproducible example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions