inst/doc/translators.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(potools)

## -----------------------------------------------------------------------------
name <- "Michael"
glue::glue("Hi {name}!")

## -----------------------------------------------------------------------------
name <- "Michael"
sprintf("Hi %s!", name)

## -----------------------------------------------------------------------------
sprintf("%s %s %s", "first", "second", "third")
sprintf("%2$s %1$s %3$s", "first", "second", "third")

Try the potools package in your browser

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

potools documentation built on Nov. 2, 2023, 5:20 p.m.