RMarkdown错误

刘廿九 2020-05-03 09:24:55
最近学习数据挖掘课程,装好了RStudio,然后弄pandoc出了问题,望指教!

我是跟着这个作者安装的
https://www.jianshu.com/p/3a1d95f9965a


在没有安装pandoc之前,我现在cmd里试了一下pandoc -v ,居然有结果
C:\Users\DELL>pandoc -v
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: C:\Users\DELL\AppData\Roaming\pandoc
Copyright (C) 2006-2016 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

然后我就没再安装pandoc了,继续安装下面的miktex和rticles

但是我怕在RStudio点击knit之后,出了问题



processing file: test_rmarkdown01.Rmd
|.......... | 14%
ordinary text without R code

|.................... | 29%
label: setup (with options)
List of 1
$ include: logi FALSE

|.............................. | 43%
ordinary text without R code

|........................................ | 57%
label: cars
|.................................................. | 71%
ordinary text without R code

|............................................................ | 86%
label: pressure (with options)
List of 1
$ echo: logi FALSE

|......................................................................| 100%
ordinary text without R code


output file: test_rmarkdown01.knit.md

"D:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS test_rmarkdown01.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output test_rmarkdown01.tex --self-contained --highlight-style tango --pdf-engine xelatex --variable graphics --lua-filter "D:/Program Files/R/R-3.6.2/library/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "D:/Program Files/R/R-3.6.2/library/rmarkdown/rmd/lua/latex-div.lua" --variable "geometry:margin=1in"


然后,经过一通查询后,我想可能是pandoc版本问题,于是我去官网下载了pandoc的最新版本,2.9几的那一版本,安装之后,我又pandoc -v,出现的还是1.9几的版本。

最诡异的是!!刚安装的pandoc是在C:\Users\DELL\AppData\Local这个路径下,cmd里查询的1.9几的那个版本给出的默认路径是在C:\Users\DELL\AppData\Roaming这里,而且C:\Users\DELL\AppData\Roaming这个路径里根本没有pandoc的文件夹!

有没有遇到一样问题的,太难受了!





...全文
403 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
刘廿九 2020-05-31
  • 打赏
  • 举报
回复
好像是包更新的问题

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧