Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 727 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 727 Bytes

pockage

The goal of pockage is to showcase usage of potools for translating messages in a package.

Installation

You can install the development version of pockage from GitHub with:

# install.packages("pak")
pak::pak("maelle/pockage")

Example

This is a basic example which shows you how pockage behaves:

library(pockage)
speak()
#> ℹ Hello Maëlle Salmon!
withr::with_language("es", speak())
#> ℹ Hola Maëlle Salmon!
withr::with_language("ca", speak())
#> ℹ Hola Maëlle Salmon!
withr::with_language("fr", speak())
#> ℹ Salut Maëlle Salmon !