R/generatePublicMethodParagraph.R

Defines functions generatePublicMethodParagraph

generatePublicMethodParagraph <- function(object_o_1, methods_s) {
  beautifier <- beautify()
  sig <- sapply(methods_s, function(e) {
    s <- getObjectMethodSignature(object_o_1, e)
    r <- regexpr('(', s, fixed = TRUE)
    paste0(beautifier$bold(substr(s, 1, r[1] - 1)), beautifier$code(substring(s, r[1])))
  })
  paste('\\cr', generateParagraphCR(paste(documentationSymbols()$black_square, sig)))
}

Try the wyz.code.rdoc package in your browser

Any scripts or data that you put into this service are public.

wyz.code.rdoc documentation built on Oct. 6, 2021, 9:07 a.m.