- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 CRAN 上有几个 R 包,它们对 Solaris(有时是 OSX)发出警告,这些警告与 pandoc 不可用于小插图构建有关。例如,这里是 ggseas
results on CRAN ,以及 source code for the vignette - 与提交给 CRAN 的版本略有不同,但没有任何相关的方式。
粗略的谷歌搜索表明这个问题很常见。在 GitHub 上也很容易找到单个包的十几个问题,但我找不到任何表明解决方案的内容。据推测,CRAN 维护者只是让这个过去了,但如果是这样的话,那就不妙了。我不喜欢勾选“我已经解决了上次提交的任何注释和警告”的框,因为它不是真的。
现在,一些幸运或熟练的人拥有不会导致此问题的 rmarkdown 小插图。例如,tidyr vignette是否not have any warnings for Solaris and OSX on CRAN .但我在 tidyr 小插图的序言中看不出有什么不同:
---
title: "Tidy data"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Tidy data}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
VignetteBuilder: knitr
---
title: "ggseas - seasonal decomposition on the fly"
author: "Peter Ellis"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{ggseas - seasonal decomposition on the fly}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
knitr
和
rmarkdown
在描述文件的“建议”中,这是在各种问题讨论中提到的一种解决方案(通常后跟“但它没有解决”)。
DESCRIPTION
包的文件,而不是小插图本身。
ggseas
的描述文件,生成警告的包:
Package: ggseas
Title: 'stats' for Seasonal Adjustment on the Fly with 'ggplot2'
Version: 0.5.4
Authors@R: c(
person("Peter", "Ellis", , "peter.ellis2013nz@gmail.com", c("aut", "cre")),
person("Christophe", "Sax", role = "ctb")
)
Maintainer: Peter Ellis <peter.ellis2013nz@gmail.com>
Description: Provides 'ggplot2' 'stats' that estimate seasonally adjusted series
and rolling summaries such as rolling average on the fly for time series.
Depends:
R (>= 3.1.2),
ggplot2 (>= 2.0.0)
Imports:
seasonal,
rlang,
stats,
zoo
License: GPL-3
LazyData: true
RoxygenNote: 6.0.1
BugReports: https://github.com/ellisp/ggseas/issues
Suggests: testthat,
knitr,
rmarkdown
VignetteBuilder: knitr
Package: tidyr
Title: Easily Tidy Data with 'spread()' and 'gather()' Functions
Version: 0.8.1.9000
Authors@R: c(
person("Hadley", "Wickham", , "hadley@rstudio.com", c("aut", "cre")),
person("Lionel", "Henry", , "lionel@rstudio.com", "aut"),
person("RStudio", role = "cph")
)
Description: An evolution of 'reshape2'. It's designed specifically for data
tidying (not general reshaping or aggregating) and works well with
'dplyr' data pipelines.
License: MIT + file LICENSE
URL: http://tidyr.tidyverse.org,
https://github.com/tidyverse/tidyr
BugReports: https://github.com/tidyverse/tidyr/issues
Depends:
R (>= 3.1)
Imports:
dplyr (>= 0.7.0),
glue,
magrittr,
purrr,
Rcpp,
rlang,
stringi,
tibble,
tidyselect
Suggests:
covr,
gapminder,
knitr,
rmarkdown,
testthat
LinkingTo:
Rcpp
VignetteBuilder: knitr
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.0.1
rhub
上重现
rhub::check(...)
时看到的内容对于 Solaris 平台。这里有一些线索可以说明问题与图像有关,这与
one suggestion on Twitter 相符。 (
tidyr
小插图没有图像)。因为没有图像(它是一个图形包)在我的小插图中没有意义,这可能会让我难倒。
✔ checking package vignettes in ‘inst/doc’
─ checking running R code from vignettes ...
‘ggseas.Rmd’ using ‘UTF-8’ ... OK
NONE
W checking re-building of vignette outputs
Error in re-building vignettes:
...
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Warning in (function (filename = "Rplot%03d.png", width = 480, height = 480, :
unable to open connection to X11 display ''
Quitting from lines 47-49 (ggseas.Rmd)
Error: processing vignette 'ggseas.Rmd' failed with diagnostics:
unable to start device PNG
Execution halted
最佳答案
已经有一段时间了,看来您还没有解决问题。
我的一个 imputeTS 包( vignette )上也有一个 R Markdown 小插图。它有很多用 ggplot2 创建的图像,所以我认为问题不在于一般的图像。
我对 .Rmd 文件有完全相同的注释
MARKDOWN .Rmd 文件:
---
title: "Gallery: Times Series Missing Data Visualizations"
author: "Steffen Moritz"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Gallery: Times Series Missing Data Visualizations}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
但是,我的描述与您的描述略有不同:
Suggests:
testthat, R.rsp, knitr, zoo, timeSeries, tis, xts, tibble, tsibble, rmarkdown
License: GPL-3
VignetteBuilder: R.rsp, knitr, rmarkdown
正如你所看到的,rmarkdown 也被额外添加为 VignetteBuilder。你能不能试试这个。一些 Github 问题也表明这可能与问题有关 (
https://github.com/r-lib/usethis/issues/1147)
关于r - 如何获取 R 包的 rmarkdown 小插图以逃避 Solaris 和 OSX 上的 CRAN 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50789125/
我在保持 MySQL 查询的直接性方面非常糟糕,但除此之外,我还有一个查询用于某些数据输入,但不是全部。我的猜测是引号在它们应该在的地方被转义了。 我同时转义了整个查询字符串。这是不好的做法还是真的很
我有几个部分有 CSS 问题。第一部分是我需要一个绝对定位的 :after 元素在固定位置元素上方可见。第二部分是我需要能够有一个模式作为将覆盖整个屏幕的固定元素的子元素。这是我的应用程序的简化版本。
嗨,我已经安装了 Pry 来进行一些很棒的调试,并且之前它可以工作,但是当我使用“下一步”进入代码时,出现以下错误: SyntaxError: (eval):2: Can't escape from
我需要在这里检查一些东西,我知道他们用一些代码过滤掉了输入,因为输入是在一行代码中获得的,这里我是在获取代码后按顺序完成的,这也可以接受吗?或者我是否必须找出某种方法来过滤和转义一行中的数据,同时获取
我有一个监控应用程序 Zabbix 代理,它允许我运行任意命令/脚本并获取返回值。代理配置了超时,任何超过超时的命令都将被终止。 对于运行的每个命令,它首先通过 alarm(timeout) 设置超时
我是一名优秀的程序员,十分优秀!