RMarkdown html_output error

天大地大妈咪最大 提交于 2019-12-10 18:16:45

问题


I am trying to create a RMarkdown document with RStudio using shiny server. It works fine if the ouptut is pdf but if I want it as html I get this following error at the end of the process (in the RMarkdown console I can see it reached 100%).

Error: unrecognized fields specified in html_dependency: attachment

I have no idea why this error is happening. Can anyone help me with this?

Thank you


回答1:


This is caused by a recent update of the relevant rmarkdown package or related ones.

Update RStudio to the latest version and then the error should disappear. It worked in my case.




回答2:


I had a similar problem and found that it was caused by RStudio attempting to use Knitr to build a Shiny page. You can fix this by running using rmarkdown::run() instead of rmarkdown::render(). In some older versions of RStudio, the "Knit html" button runs this:

rmarkdown::render('filename.Rmd', 'html_document')

whereas, you can get the the results you want by running this command instead:

rmarkdown::run('filename.Rmd')

You could use this command or just update to the latest version of RStudio.

There is more info about authoring Shiny document here: http://rmarkdown.rstudio.com/authoring_shiny.html.




回答3:


Updating RStudio didn't work for me. What did work was updating all R packages (Tools > Check for Package Updates...).



来源:https://stackoverflow.com/questions/25784526/rmarkdown-html-output-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!