Cannot figure out error code

When I attempt to knit this code to a PDF, I get the below error directing me to line 157; however, my code only has 90 lines.

\text{tot_crime(2017-2021)} = \beta_0 + \beta_1 \times \text{population} + \beta_2 \times \text{unemployment} + \beta_3 \times \text{percent_below_poverty} + \beta_4 \times \text{hs_only_percent} + \beta_5 \times \text{bachelors_or_higher_percent} + \beta_6 \times \text{vast_majority_income} + \beta_7 \times \text{median_household_income} + \epsilon \tag1

output file:

! Missing inserted. <inserted text>
l.157 \text{tot_crime(2017-2021)}
= \beta_0 + \beta_1 \times \text{populatio...

Try to find the following text in combined_crime_income_distrubution_analysis.Rmd:

You may need to add around a certain inline R expression r in combined_crime_income_distrubution_analysis.Rmd (see the above hint). See Inline R expression don't work when using scientific notation (pdf_document) · Issue #385 · rstudio/rmarkdown · GitHub for more info.
Error: LaTeX failed to compile combined_crime_income_distrubution_analysis.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See combined_crime_income_distrubution_analysis.log for more info.
In addition: Warning message:
In do_once((if (is_R_CMD_check()) stop else warning)("The function xfun::isFALSE() will be deprecated in the future. Please ", :
The function xfun::isFALSE() will be deprecated in the future. Please consider using base::isFALSE(x) or identical(x, FALSE) instead.
Execution halted

I am guessing but I think you want :


This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.