knitr::opts_chunk$set(echo = TRUE)

Saying hello to the world

One of the most widely known functions: hello(). This functions has no arguments. It's use is self-explanatory, see below.

library(testpckg1337)
hello()

Saying hello to anybody you want

Now the above funtion is great, but a little variety will certainly not hurt. The hello.name() function takes one argument name (character) and returns a string which may be used to greet anybody.

hello.name("Ann")
x <- hello.name("Christian")
x

If the argument name is not a string, an error is thrown, see below.

hello.name(1337)


MW89/testpckg1337 documentation built on May 28, 2019, 1:46 p.m.