The R Project SVN R

Rev

Rev 88365 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88365 Rev 89495
Line 436... Line 436...
436
        identical(meths, rownames(mi))
436
        identical(meths, rownames(mi))
437
    })
437
    })
438
    ## failed up to R 4.4.x
438
    ## failed up to R 4.4.x
439
}
439
}
440
 
440
 
-
 
441
 
441
## R CMD check should *not* warn about \Sexpr{} built sections in Rd (PR#17479):
442
### Checking Rd files in 'exSexpr'
-
 
443
 
442
writeLines(msg <- capture.output(
444
writeLines(msg <- capture.output(
443
    tools:::.check_package_parseRd(dir = file.path(pkgPath, "exSexpr"),
445
    tools:::.check_package_parseRd(dir = file.path(pkgPath, "exSexpr"),
444
                                   minlevel = -Inf)
446
                                   minlevel = -Inf)
445
))
447
))
-
 
448
 
-
 
449
## R CMD check should *not* warn about \Sexpr{} built sections in Rd (PR#17479):
446
if(length(ifoo <- grep("foo.Rd", msg, fixed = TRUE)))
450
if(length(ifoo <- grep("foo.Rd", msg, fixed = TRUE)))
447
    stop(".check_package_parseRd() complained about foo.Rd in\n",
451
    stop(".check_package_parseRd() complained about foo.Rd in\n",
448
         paste0(msg[ifoo], collapse = "\n"))
452
         paste0(msg[ifoo], collapse = "\n"))
449
## in R <= 3.5.1, gave
453
## in R <= 3.5.1, gave
450
##  "prepare_Rd: foo.Rd:14: Section \\Sexpr is unrecognized and will be dropped"
454
##  "prepare_Rd: foo.Rd:14: Section \\Sexpr is unrecognized and will be dropped"