当我在 rmarkdown 文档中运行时knit,它一开始似乎可以工作,但最终会显示以下错误消息。
output file: paper-1_revised.knit.md
File not found in resource path
Error: pandoc document conversion failed with error 99
Execution halted
Run Code Online (Sandbox Code Playgroud)
我检查了几乎所有路径中使用的图片\includegraphics,但它们对我来说似乎是正确的。有什么方法可以修复或找到代码中资源路径问题所在的位置吗?
---
title: "Model"
author: |
| jj
date: '2020-04-20'
header-includes:
- \usepackage{amsmath}
- \usepackage{tikz}
- \usepackage{caption}
- \usepackage{pgfplots}
- \usepackage[makeroom]{cancel}
- \usetikzlibrary{arrows,decorations.markings}
- \usetikzlibrary{intersections}
- \usepackage{biblatex}
- \usepackage[nottoc]{tocbibind}
- \usepackage{filecontents}
- \addbibresource{\jobname.bib}
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
- \usepackage{tabularx,ragged2e,booktabs,caption}
- \newenvironment{rcases}
{\left.\begin{aligned}}
{\end{aligned}\right\rbrace}
bibliography:
subparagraph: true
toc: false
number_sections: true
output: pdf_document
fig_caption: yes …Run Code Online (Sandbox Code Playgroud) 我想知道是否有一种方法可以使用stargazer(). 我从以下代码开始,但我不确定如何从这里继续。
library(mtcars)
mtcars2 <- within(mtcars, {
vs <- factor(vs, labels = c("V", "S"))
am <- factor(am, labels = c("automatic", "manual"))
cyl <- ordered(cyl)
gear <- ordered(gear)
carb <- ordered(carb)
})
summary1 = summary(mtcars2)
stargazer(summary1)
Run Code Online (Sandbox Code Playgroud)
这给了我以下错误:
名称(x) <- 值中的错误:“名称”属性 [11] 的长度必须与向量 [3] 的长度相同
使用或其他类似的软件包,我想制作一个按传输( )和引擎( )stargazer()分类的汇总统计表,并以以下方式呈现。amvs