gpt4 book ai didi

Roxygenize 失败... is.call(call) is not TRUE

转载 作者:行者123 更新时间:2023-12-04 12:32:36 26 4
gpt4 key购买 nike

每次我尝试roxygenize 一个包我都会得到这个错误:

Error: is.call(call) is not TRUE

traceback() 的结果:

11: stop(sprintf(ngettext(length(r), "%s is not TRUE", "%s are not all TRUE"), 
ch), call. = FALSE, domain = NA)
10: stopifnot(is.call(call))
9: standardise_call(call, env)
8: object_from_call(call, env, preref)
7: (function (call, ref, comment_ref)
{
preref <- parse.preref(as.character(comment_ref))
if (is.null(preref))
return()
preref$object <- object_from_call(call, env, preref)
preref$srcref <- list(filename = file, lloc = as.vector(ref))
add_defaults(preref)
})(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]])
6: mapply(FUN = f, ..., SIMPLIFY = FALSE)
5: Map(extract, parsed, refs, comment_refs)
4: FUN(c("/home/path/to/package/file1.r",
"/home/path/to/package/file2.r",
.... # list of files truncated
"/home/path/to/package/doc.file.r")[[25L]],
...)
3: lapply(r_files(base_path), parse_file, env = env)
2: parse_package(base_path, load_code)
1: roxygenize("~/Current/r/path/to/package/")

有没有人遇到过这个问题?我什至不确定如何进一步调试它。

最佳答案

如果不是典型的 NULL 值(放在包文档的末尾),而是使用 NA,则会发生此错误。只需更新为 NULL 即可消除错误。

关于Roxygenize 失败... is.call(call) is not TRUE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21744662/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com