hello: Hello World

View source: R/hello.R

helloR Documentation

Hello World

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

hello(who, lang = "EN", LangData = Hello::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

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


mathhtam15/Hello documentation built on May 24, 2022, 12:05 a.m.