@@ -2560,19 +2560,6 @@ add_dummies <- function(dir, Log)
25602560
25612561 # # Check cross-references in R documentation files.
25622562
2563- # # <NOTE>
2564- # # Installing a package warns about missing links (and hence R CMD
2565- # # check knows about this too provided an install log is used).
2566- # # However, under Windows the install-time check verifies the links
2567- # # against what is available in the default library, which might be
2568- # # considerably more than what can be assumed to be available.
2569- # #
2570- # # The formulations in section "Cross-references" of R-exts are not
2571- # # quite clear about this, but CRAN policy has for a long time
2572- # # enforced anchoring links to targets (aliases) from non-base
2573- # # packages.
2574- # # </NOTE>
2575-
25762563 if (dir.exists(" man" ) && R_check_Rd_xrefs ) {
25772564 checkingLog(Log , " Rd cross-references" )
25782565 Rcmd <- paste(opWarn_string , " \n " ,
@@ -5818,8 +5805,9 @@ add_dummies <- function(dir, Log)
58185805 (startsWith(install , " check" ) || R_check_use_install_log
58195806 || ! isatty(stdout()))
58205807 INSTALL_opts <- install_args
5821- # # don't use HTML, checkRd goes over the same ground.
5822- INSTALL_opts <- c(INSTALL_opts , " --no-html" )
5808+ # # Don't use HTML, checkRd goes over the same ground.
5809+ # # Not quite for static HTML, so just use the R default.
5810+ # # INSTALL_opts <- c(INSTALL_opts, "--no-html")
58235811 if (install == " fake" )
58245812 INSTALL_opts <- c(INSTALL_opts , " --fake" )
58255813 else if (! multiarch )
@@ -5950,7 +5938,7 @@ add_dummies <- function(dir, Log)
59505938 " ^ *# *warning" ,
59515939 # # Solaris cc has
59525940 " Warning: # *warning" ,
5953- # these are from era of static HTML
5941+ # # these are from era of static HTML
59545942 " missing links?:" ,
59555943 # # From the byte compiler's 'warn' methods
59565944 " ^Note: possible error in" ,
@@ -6385,6 +6373,21 @@ add_dummies <- function(dir, Log)
63856373 lines <- filtergrep(" Warning: ignoring .First.lib()" , lines ,
63866374 fixed = TRUE )
63876375
6376+ # # <FIXME>
6377+ # # Building with --enable-prebuilt-html warns about
6378+ # # missing links for Rd xrefs with missing package
6379+ # # anchors (unless in recommended packages). For now,
6380+ # # filter these out when noting the missing anchors.
6381+ # # Remove eventually ...
6382+ # # Note also that further above we explicitly arrange to
6383+ # # get these Rd warnings from the install log ...
6384+ if (config_val_to_logical(Sys.getenv(" _R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_" ,
6385+ " FALSE" ))) {
6386+ lines <- filtergrep(" Rd warning:.*: missing link" ,
6387+ lines , useBytes = TRUE )
6388+ }
6389+ # # </FIXME>
6390+
63886391 lines <- unique(lines )
63896392
63906393 # # Can get reports like
0 commit comments