Closed cderv closed 2 years ago
Have you tried the latest dev version? @DavisVaughan also reported this so I pushed a quick fix.
I think I had. But maybe not then.... Got mixed up somehow.
Updating to dev version indeed fix the issue as there is not more error. I got NA instead.
system <- function(...) processx::run(...)
downlit:::href_topic_remote("system", "base")
#> [1] NA
unique <- function(...) dplyr::distinct(...)
downlit:::href_topic_remote("unique", "base")
#> [1] NA
with
downlit 0.4.1.9000 2022-07-04 [1] Github (r-lib/downlit@128f49a)
Sorry for the noise. Should have looked at more than just the NEWS.md. Fix is here; 3a58c5e7638d2b91a336a85948dca6957fd71447
Hmmm you shouldn't be getting NA
s though
This is quite specific but I figured it is interested to report
Here is a minimal reprex for the issue I found after last downlit update. (it can be even simplify more)
Quite specific because it happens when there is a function name in workspace same as one in base environment, and
href_topic_remote
is called. In this specific case:href_topic_remote()
will callhref_topic_reexported()
href_topic_reexported()
will callhref_topic_remote()
Traceback subset
This happened in a bookdown with
bs4_book()
asdownlit::downlit_html_path()
is used inbs4_chapter_tweak()
function.The real case usage for which this happened is