“错误运行 C:/Users/user/AppData/Local/Programs/MIKTEX~1.9/miktex/bin/pdflatex.exe(退出代码 1)”是什么意思?

“错误运行 C:/Users/user/AppData/Local/Programs/MIKTEX~1.9/miktex/bin/pdflatex.exe(退出代码 1)”是什么意思?

我正在尝试在 Rsweave 中运行此代码

\documentclass[a4paper,12pt]{report}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\rhead{\thepage}
\lhead{\bfseries Unemployment in India:January-April 2016:India}
\rfoot{\textit{June 2016}}
\lfoot{BSE-CMIE}
\begin{document}
\SweaveOpts{concordance=TRUE}
\section{India}

<<fig = TRUE , echo = FALSE>>=


unemp_monthly= read.csv("C:/Users/user/Downloads/ue_msamplefile_4.txt", sep= "|", header= T)
library(survey)
unemp_monthly$LABOUR_FORCE <- ifelse(unemp_monthly$EMPLOYMENT_STATUS == "Employed" | unemp_monthly$EMPLOYMENT_STATUS == "Unemployed, willing and looking for a job", 1 , 0)
unemp_monthly$UNEMPLOYED <- ifelse(unemp_monthly$EMPLOYMENT_STATUS == "Unemployed, willing and looking for a job" , 1 , 0)
options(survey.lonely.psu= "adjust")
mem_nstrat= svydesign(id= ~HR + TOWN_VILLAGE + HH_ID, strata= ~STRATA, fpc= ~FPC_REGION_HR_STATE_TOTAL + FPC_REGION_TV_HR_TOTAL + FPC_REGION_HH_TV, weight= ~MEM_WEIGHT_GE15_STATE_REGTYPE_SAMPLE, data= unemp_monthly, nest= T)
unemp_rate_monthly= svyby(~UNEMPLOYED, by= ~COUNTRY, denominator= ~LABOUR_FORCE, design= mem_nstrat, svyratio)
unemp_rate_monthly_region_type= svyby(~UNEMPLOYED, by= ~REGION_TYPE, denominator= ~LABOUR_FORCE, design= mem_nstrat, svyratio)
print(unemp_rate_monthly_region_type)
print(unemp_rate_monthly)


@



\end{document}

但是当我运行此代码时会出现此错误

Writing to file header_footer.tex
Processing code chunks with options ...
 1 : keep.source term verbatim pdf  (header_footer.Rnw:16)
Loading required package: grid
Loading required package: Matrix
Loading required package: survival

Attaching package: 'survey'

The following object is masked from 'package:graphics':

    dotchart


You can now run (pdf)latex on 'header_footer.tex'
Running pdflatex.exe on header_footer.tex...failed
Error running C:/Users/user/AppData/Local/Programs/MIKTEX~1.9/miktex/bin/pdflatex.exe (exit code 1)

请帮忙。

相关内容