hello: Hello World

Description Usage Arguments Value Examples

View source: R/hello.R

Description

hello says "hello" in the user-specified language. The user is asked to give her/his name so that the hello message gets personalized.

Usage

1
hello(who, lang = "EN", LangData = language)

Arguments

who

a character vector of length 1 that specifies the name of the person to whom the message is addressed.

lang

a character vector of length 1 that specifies the preferred language. Default to "EN" for English. Other possible values include "FR" for French, "IT" for Italian, "ES" for Spanish, or "DE" for German. Case is ignored.

LangData

an optional data.frame with two columns each of mode character. The first column gives the language codes and the second column gives the corresponding "hello" word. Default to language.

see ?language

Value

a character vector with a personalized "hello" message.

Examples

1
2
hello("James")
hello("Amelia", "Es")

kedelaure/Hello documentation built on Dec. 21, 2021, 5:24 a.m.