Сейчас я обновляю версию пакета до 0.2.1 на CRAN.
После выполнения devtools::check_rhub() ошибка сказала:
checking re-building of vignette outputs (1.9s)
Error(s) in re-building vignettes:
...
--- re-building 'QuickStart.Rmd' using rmarkdown
Quitting from lines 74-75 (QuickStart.Rmd)
Error: processing vignette 'QuickStart.Rmd' failed with diagnostics:
there is no package called 'utf8'
--- failed re-building 'QuickStart.Rmd'
SUMMARY: processing the following file failed:
'QuickStart.Rmd'
Error: Vignette re-building failed.
Execution halted
И я проверил код из строк 74-75.
generate_ts(n.ts = 3, freq = 12, nComp = 2, n = 120, output_format = "tsibble")
Я попытался добавить library(utf8)
в виньетку, но получил сообщение об ошибке от devtools::check(cran=TRUE)
:
checking for unstated dependencies in vignettes ... NOTE
'library' or 'require' call not declared from: 'utf8'
Я попытался добавить как library(utf8)
в винье, так и utf8
в DESCRIPTION, но это также привело к ошибке
checking package dependencies ... ERROR
The suggested packages are required for a complete check.
Checking can be attempted without them by setting the environment
variable _R_CHECK_FORCE_SUGGESTS_ to a false value.
See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.
Кто-нибудь знает, как решить эту проблему?
Другие коды в виньетке
title: "Introduction to gratis"
author: "Bocong Zhao"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Introduction to gratis}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
{r initial, echo = FALSE, cache = FALSE, results = 'hide'}
library(knitr)
opts_chunk$set(
warning = FALSE, message = FALSE, echo = TRUE,
fig.width = 7, fig.height = 6, fig.align = 'centre',
comment = "#>"
)
{r, message=FALSE, include = FALSE}
library(forecast)
library(tsibble)
library(utf8)