knitr::opts_chunk$set(echo = TRUE)
One of the most widely known functions: hello(). This functions has no arguments. It's use is self-explanatory, see below.
library(testpckg1337) hello()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.