Closed netique closed 3 years ago
Just ran into this one as well; I've _R_CHECK_LENGTH_1_LOGIC2_=verbose
so I get:
--- value of length: 2 type: logical ---
[1] FALSE FALSE
--- function from context ---
function (topic)
{
rdname <- find_rdname(NULL, topic)
if (is.null(rdname)) {
loc <- find_rdname_attached(topic)
if (is.null(loc)) {
return(NA_character_)
}
else {
return(href_topic_remote(topic, loc$package))
}
}
if (rdname == "reexports") {
return(href_topic_reexported(topic, getOption("downlit.package")))
}
cur_rdname <- getOption("downlit.rdname", "")
if (rdname == cur_rdname) {
return(NA_character_)
}
if (cur_rdname != "") {
paste0(rdname, ".html")
}
else {
paste0(getOption("downlit.topic_path"), rdname, ".html")
}
}
<bytecode: 0x5642d97bad70>
<environment: namespace:downlit>
--- function search by body ---
Function href_topic_local in namespace downlit has this body.
----------- END OF FAILURE REPORT --------------
Error in if (rdname == "reexports") { : the condition has length > 1
Would've been helpful to know which packages this occured in.
I have a package, where one function has the same name as the package, which is a case quite often, in my view. The package-level .Rd was built with
usethis::use_package_doc()
. When I callpkgdown::build_site(new_process = FALSE)
, following error occurs:Traceback:
In the innermost call, there are two elements in
rdnames
: "package" and "package-package" (fromusethis::use_package_doc()
). This is the issue. A clash of two aliases in .Rd.