File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -197,21 +197,17 @@ function(dir)
197197
198198 if (basename(dir ) %notin % .get_standard_package_names()$ base ) {
199199 # # Check whether we got everything from the build stage
200- # # expansions.
200+ # # expansions. Catch if built with \bib* stubs/unknowns.
201201 built_file <- file.path(dir , " build" , " partial.rdb" )
202202 if (! file.exists(built_file )) {
203203 u <- TRUE
204204 } else {
205205 y <- lapply(readRDS(built_file )[names(x )],
206206 .bibentries_cited_or_shown )
207- # # Cannot simply use identical() as entries in the partial
208- # # Rd db are subject to section re-ordering.
209- # # <FIXME>
210- # # Is this still true now that we go via .build_Rd_db()?
211- # # </FIXME>
212207 g <- function (u , v ) {
213- is.null(v ) || # built with \bib stubs/unknowns in R < 4.6.0
214- length(setdiff(split(u , row(u )), split(v , row(v )))) > 0L
208+ is.null(v ) || # page not in partial.rdb (no build-stage macros)
209+ # or built with undefined macros
210+ sum(startsWith(v [,3L ], " \\ Sexpr" )) != nrow(u )
215211 }
216212 if (any(unlist(Map(g , x , y ), use.names = FALSE )))
217213 u <- TRUE
You can’t perform that action at this time.
0 commit comments