简体   繁体   English

尝试使用 distill 构建网站时出现错误消息:版本规范无效

[英]Error message when trying to build website using distill: invalid version specification

I have a distill website.我有一个提炼网站。 When I try to hit "Build Website" using RStudio I get this error message:当我尝试使用 RStudio 点击“构建网站”时,我收到以下错误消息:

Error: invalid version specification '2021.09.0+351' Execution halted错误:无效的版本规范“2021.09.0+351”执行暂停

Exited with status 1.以状态 1 退出。

Both issues are already fixed in development version of distill .这两个问题都已在开发版的distill中修复。 It was previously found by us or reported in Github Issues.它之前由我们发现或在 Github Issues 中报告过。 Don't hesitate to look there when you have trouble, and also test the development v有困难的时候不要犹豫,看看那里,同时测试开发v

This issue这个问题

Error: invalid version specification 

is caused when you used the last RStudio IDE version.是你用的最后一个RStudio IDE版本造成的。

The blank page issue is caused when using last rmarkdown version.空白页问题是在使用最新的 rmarkdown版本时引起的。

We'll make a patch release to CRAN very soon, but in the meantime, please install the development version of distill我们很快会为 CRAN 发布补丁,但同时请安装开发版的distill

remotes::install_github("rstudio/distill")

It is not a fully satisfactory answer, but I faced the same issue.这不是一个完全令人满意的答案,但我遇到了同样的问题。 Running:跑步:

rmarkdown::render_site(encoding = 'UTF-8') 

on a terminal/command line window does run the command fully.在终端/命令行 window 上确实完全运行了命令。 However, the site is created only with blank pages (even though if you check the html source, the page is there, hidden).但是,该站点仅使用空白页面创建(即使您检查 html 源,该页面仍然存在,隐藏)。

I'm tracing the blank pages to the upgrade of the rmarkdown package, in my case, from 2.8 to 2.11.我正在跟踪空白页以升级rmarkdown package,在我的例子中,从 2.8 升级到 2.11。 This brings with it a new dependency of jquerylib which might be a cause of this as well.这带来了jquerylib的新依赖性,这也可能是造成这种情况的原因。 This has started to happen with the new version of RStudio 2021.09.0 Build 351 .新版本 RStudio 2021.09.0 Build 351已经开始出现这种情况。 This is consistent with the error message you and I got.这与你我得到的错误信息是一致的。

I tried to downgrade rmarkdown but every time you knit from RStudio with that version, it forces the upgrade.我试图降级rmarkdown ,但每次你使用该版本从 RStudio 编织时,它都会强制升级。 I think this should be reported as a bug, as it was clearly working before and now there are several issues that all seemed to be linked with all the upgrades (not compiling from inside RStudio, compiling with blank pages).我认为这应该被报告为一个错误,因为它之前显然是有效的,现在有几个问题似乎都与所有升级有关(不是从 RStudio 内部编译,用空白页编译)。

(I would have added this as a comment rather than a solution, but I do not have enough reputation yet) (我会把它添加为评论而不是解决方案,但我还没有足够的声誉)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM