tests/testthat/escaping/basic-escape-out.R

#' things
#'
#' @examples
#' call("\\.")
NULL


#' things
#'
#' @examples
#' call("\n")
NULL

#' things
#'
#' @examples
#' call("\n")
#' ano("\\.", further = X)
NULL


#' things
#'
#' @examples
#' call("\n")
#' ano("\\.", further = X)
NULL

"single quotes with
embedded and \n not embedded line breaks"

x <- "	2" # there is a tab emebbed (created with writeLines("x <- '\t2'"))

x <- "\001"
"\x01"

"\001"
"\001"

#' things
#'
#' @examplesIf N
#' call("\n")
#' ano("\\.", further = X)
NULL

#' things
#'
#' @examplesIf call("\n")
#' ano("\\.", further = X)
NULL

Try the styler package in your browser

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

styler documentation built on Aug. 29, 2023, 5:10 p.m.