You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--smart/-S is said to have been removed in Pandoc 2.0 #1120
--smart/-S has been removed. Use +smart or -smart extension instead.
For example: pandoc -f markdown+smart -t markdown-smart.
Try pandoc --help for more information.
Error: pandoc document conversion failed with error 2
Please delete sde.Rmd after you finish debugging the error.
Execution halted
@kenarab Yep, we do plan to release the current devel version to CRAN relatively soon. Pandoc 2.0 was released last night, and I guess the problem will first hit Homebrew users who have installed Pandoc. Thanks for the report!
I've been working on a set of Rmd documents, all of which were knitting fine to HTML, docx and PDF (just regular Rmd, not bookdown). When I brew upgraded to pandoc 2.0 this afternoon, I started seeing the --smart error described above. After
devtools::install_github("rstudio/rmarkdown")
I was able to knit to HTML and docx but not PDF. Instead I get the following:
pdf-engine /Library/TeX/texbin/pdflatex is not compatible with output format latex
Error: pandoc document conversion failed with error 1
I am using R 3.4.2, RStudio 1.1.383 on Mac OSX with
pdflatex --version
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al. [copyright details omitted]
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04
This is not urgent in that I'm able to create PDFs by reverting
@rdrr1990 This is only possible if the old version is not automatically removed (as for me).
Currently it is not possible to install an older version of pandoc from hombrew/core. Could you upload the latest v1 binary (1.19.2.4) to homebrew so that users can do a brew install [email protected]? Would be great!
I also tried installing the latest v1 using the pandoc.rb formula directly but Github says that the history is too long... I could also do it locally but have no time right now.
If one has the url to the old v1 pandoc.rb this would also help 👍
With @leobelen we prepared the configuration for installing [email protected] vía brew as an emergency tweak. We finally find the way recompiling the package, but It seems to be necesary. We will publish it today.
Te mencione en el issue para q subas el pandoc 1.9
Enviado desde el móvil
El 31 oct. 2017, a la(s) 06:40, Patrick Schratz <[email protected]> escribió:
I confirm the error on macOS with pandoc 2.0.
@rdrr1990 This is only possible if the old version is not automatically removed (as for me).
Currently it is not possible to install an older version of pandoc from hombrew/core. Could you upload the latest v1 binary (1.19.2.4) to homebrew so that users can do a brew install ***@***.***? Would be great!
I also tried installing the latest v1 using the pandoc.rb formula directly but Github says that the history is too long... I could also do it locally but have no time right now.
If one has the url to the old v1 pandoc.rb this would also help 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
So uninstalling a brew package, unmask the last version (1.19) installed.
@kenarab this only works if you do not clean up (brew cleanup) after doing brew upgrade - you should (imho) unless you want to keep all old bottles of formulas you installed. They occupy quite some space over time..
I use eclipse-statet and had the same problem. I installed: devtools::install_github("rstudio/rmarkdown")
and then, library(rmarkdown)
the problem was solved using next configuration in eclipse>Run>External tools>External tools configurations:
i could not use devtools::install_github("rstudio/rmarkdown") to solve the problem and it showed that -bash: syntax error near unexpected token `"rstudio/rmarkdown"'. Anyone have some ideas about this?
@yihui Yeah, I got your point that packages("rmarkdown") should be installed. But whenever I tried to do this with 'devtools::install_github("rstudio/rmarkdown"' or 'install.packages("rmarkdown")', it always shows that '-bash: syntax error near unexpected token ···'. Do you have any solutions for this? Thanks!
@yueqin-li So it seems you just cannot install any packages, and your R installation seems to be broken somehow. I have no idea what this error message means. Without seeing your devtools::session_info(), my blind shot in the dark would be to reinstall R.
I am getting this error with the following Dockerfile installation, which was the only way I could get the following packages installed together in one place
This is because you use rmarkdown 1.3 with Pandoc 2+ .
r-rmarkdown=1.3
pandoc=2.2.3.2
rmarkdown compatibility with pandoc 2 is from version 1.7 and above.
You either need to downgrade pandoc to a version before 2 or upgrade rmarkdown to at least version 1.7 (that is the one which includes the fix for this issue bye the way - it is normal you encounter it)
Well, the reason I install with conda is to try to avoid such version compatibility issues; I didn't pick these versions, conda did. Is there a correct place to report the incompatibility for the conda package listings? Thanks.
Activity
yihui commentedon Oct 13, 2017
From rstudio/bookdown#475,
--latex-enginehas been changed to--pdf-enginein Pandoc 2.0.also test the latest dev version of Pandoc to discover issues like #1120
Use the +smart extension instead of the --smart argument for Pandoc 2…
kenarab commentedon Oct 30, 2017
I had yet the same problem while executing
devtools:document, after brew update including pandoc in OSX.It seems became a blocking bug for those which develop packages with no clear origin but a wrong pandoc call.
I have installed the development version of markdown
But still doesn't works.
I will downgrade pandoc for beeing able to work with package development until is solved.
yihui commentedon Oct 30, 2017
@kenarab It is
rmarkdowninstead ofmarkdown:kenarab commentedon Oct 30, 2017
Thanks @yihui. It worked installing rmarkdown development version. A turnaround until current version of rmarkdown is in CRAN.
Maybe is good to speed up rmarkdown CRAN publication of current version.
yihui commentedon Oct 30, 2017
@kenarab Yep, we do plan to release the current devel version to CRAN relatively soon. Pandoc 2.0 was released last night, and I guess the problem will first hit Homebrew users who have installed Pandoc. Thanks for the report!
rdrr1990 commentedon Oct 30, 2017
I've been working on a set of
Rmddocuments, all of which were knitting fine toHTML,docxandPDF(just regularRmd, notbookdown). When Ibrewupgraded topandoc 2.0this afternoon, I started seeing the--smarterror described above. AfterI was able to knit to
HTMLanddocxbut notPDF. Instead I get the following:I am using
R 3.4.2,RStudio 1.1.383on Mac OSX withThis is not urgent in that I'm able to create PDFs by reverting
Is there a way to knit
PDFs withpandoc 2.0?yihui commentedon Oct 31, 2017
@rdrr1990 Thanks! I'll investigate it tomorrow.
pat-s commentedon Oct 31, 2017
I confirm the error on macOS with
pandoc 2.0.@rdrr1990 This is only possible if the old version is not automatically removed (as for me).
Currently it is not possible to install an older version of pandoc from
hombrew/core. Could you upload the latest v1 binary (1.19.2.4) to homebrew so that users can do abrew install [email protected]? Would be great!I also tried installing the latest v1 using the
pandoc.rbformula directly but Github says that the history is too long... I could also do it locally but have no time right now.If one has the url to the old v1
pandoc.rbthis would also help 👍kenarab commentedon Oct 31, 2017
With @leobelen we prepared the configuration for installing [email protected] vía brew as an emergency tweak. We finally find the way recompiling the package, but It seems to be necesary. We will publish it today.
kenarab commentedon Oct 31, 2017
7 remaining items
rdrr1990 commentedon Oct 31, 2017
works for me--PDF, HTML, and docx all build fine on my mac with that new github version!
yihui commentedon Oct 31, 2017
@rdrr1990 Thanks! Actually you reminded me of a remaining issue with Word output, and I just pushed a fix e0339d3.
pat-s commentedon Nov 1, 2017
@kenarab this only works if you do not clean up (
brew cleanup) after doingbrew upgrade- you should (imho) unless you want to keep all old bottles of formulas you installed. They occupy quite some space over time..@yihui thanks!
johnfarias commentedon Nov 1, 2017
I use eclipse-statet and had the same problem. I installed:
devtools::install_github("rstudio/rmarkdown")and then,
library(rmarkdown)the problem was solved using next configuration in eclipse>Run>External tools>External tools configurations:
An example:

Fix error with new version of pandoc. This is just a temporary fix.
yueqin-li commentedon May 16, 2018
i could not use devtools::install_github("rstudio/rmarkdown") to solve the problem and it showed that -bash: syntax error near unexpected token `"rstudio/rmarkdown"'. Anyone have some ideas about this?
yihui commentedon May 16, 2018
@yueqin-li This has been fixed long time ago, and you can just install from CRAN:
install.packages("rmarkdown").yueqin-li commentedon May 16, 2018
@yihui Yeah, I got your point that packages("rmarkdown") should be installed. But whenever I tried to do this with 'devtools::install_github("rstudio/rmarkdown"' or 'install.packages("rmarkdown")', it always shows that '-bash: syntax error near unexpected token ···'. Do you have any solutions for this? Thanks!
yihui commentedon May 16, 2018
@yueqin-li So it seems you just cannot install any packages, and your R installation seems to be broken somehow. I have no idea what this error message means. Without seeing your
devtools::session_info(), my blind shot in the dark would be to reinstall R.stevekm commentedon Oct 22, 2019
I am getting this error with the following Dockerfile installation, which was the only way I could get the following packages installed together in one place
error message:
cderv commentedon Oct 22, 2019
This is because you use
rmarkdown1.3 with Pandoc 2+ .rmarkdown compatibility with pandoc 2 is from version 1.7 and above.
You either need to downgrade pandoc to a version before 2 or upgrade rmarkdown to at least version 1.7 (that is the one which includes the fix for this issue bye the way - it is normal you encounter it)
Hope it helps
stevekm commentedon Oct 22, 2019
Well, the reason I install with conda is to try to avoid such version compatibility issues; I didn't pick these versions, conda did. Is there a correct place to report the incompatibility for the conda package listings? Thanks.
cderv commentedon Oct 23, 2019
For reference, conda dependency for this package
I don't know where you can report, but there are several groups to ask this I think
https://conda.io/en/latest/help-support.html
Personaly, for R project with docker, I would use rocker images on docker hub, and install r package using R directly.
github-actions commentedon Nov 3, 2020
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.