[英]Rstudio, R Markdown - Knit HTML : the device doesn't recognize the command
I am working on Rstudio. 我正在研究Rstudio。
I am trying to convert a .Rmd file into a HTML file. 我正在尝试将.Rmd文件转换为HTML文件。 When i click on "Knit HTML", the program opens up and alert box saying "The device does not recognize the command."
当我单击“编织HTML”时,该程序将打开并显示警告框,提示“设备无法识别该命令”。
Alternatively, when i Try File->New File ->R Markdown I get the alert box saying "Creating R Markdown documents requires an updated version of the rmarkdown package. Do you want to install this package now ?" 或者,当我尝试“文件”->“新文件”->“ R Markdown”时,出现警告框,提示“创建R Markdown文档需要rmarkdown软件包的更新版本。是否要立即安装此软件包?”
When i click yes, a console appears but i can't copy/paste it because the console closes as soon as the (maybe failed) download finishes. 当我单击“是”时,会出现一个控制台,但我无法复制/粘贴该控制台,因为一旦(可能失败)下载完成,该控制台就会关闭。
Try installing both rmarkdown
+ its dependencies from a plain R session: 尝试从普通R会话安装
rmarkdown
及其依赖项:
deps <- tools::package_dependencies("rmarkdown")$rmarkdown
install.packages(deps)
install.packages("rmarkdown")
Then try again. 然后再试一次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.