File: roxygen2.R

package info (click to toggle)
r-cran-httr2 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,684 kB
  • sloc: sh: 13; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
rfc <- function(num, sec = NULL) {
  paste_c(
    c(
      "[",
      if (!is.null(sec)) paste0("Section ", sec, " of "),
      "RFC ",
      num,
      "]"
    ),
    c(
      "(https://datatracker.ietf.org/doc/html/rfc",
      num,
      if (!is.null(sec)) paste0("#section-", sec),
      ")"
    )
  )
}