最近學習資料挖掘課程,裝好了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的檔案夾!
有沒有遇到一樣問題的,太難受了!
uj5u.com熱心網友回復:
好像是包更新的問題轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/40196.html
標籤:其他開發語言
