CRAN 检查 roxygen @examples 上的错误:base::assign 和缺少 reshape2

CRAN checks errors on roxygen @examples: base::assign and missing reshape2

我正在尝试将以下包推送到 CRAN,但检查时一直出现错误。

错误:

✓  checking R/sysdata.rda ...
    WARNING
   ‘qpdf’ is needed for checks on size reduction of PDFs
✓  checking installed files from ‘inst/doc’ ...
✓  checking files in ‘vignettes’ ...
E  checking examples (3s)
   Running examples in ‘oRus-Ex.R’ failed
   The error most likely occurred in:
   
   > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
   > ### Name: analyseStories
   > ### Title: Analysing Stories
   > ### Aliases: analyseStories
   > 
   > ### ** Examples
   > 
   > # Transform the stories
   > fileUrl <- example_stories()
   > stories <- analyseStories(fileUrl, 7)
   Joining, by = "word"
   Joining, by = "word"
   Error in loadNamespace(name) : there is no package called ‘reshape2’
   Calls: analyseStories ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
   Execution halted

当前问题:

我试过很多东西:

我 运行 别无选择。知道发生了什么事吗?

正如@stefan 在评论中建议的那样,我必须将 reshape2 添加到描述文件中的建议包中。我添加了使用:

usethis::usepackage("reshape2", "Suggests")

随后重新生成文档:

devtools:document()

包裹正在运往 CRAN 的途中!