-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build_site() fails when two .Rd mans have the same \aliases #74
Labels
bug
an unexpected problem or unintended behavior
Comments
netique
changed the title
build_home_index fails when two .Rd mans have the same \aliases
build_site() fails when two .Rd mans have the same \aliases
Dec 27, 2020
Just ran into this one as well; I've --- 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. |
hadley
added a commit
to r-lib/pkgdown
that referenced
this issue
Apr 27, 2021
hadley
added a commit
to r-lib/pkgdown
that referenced
this issue
Apr 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: