knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.width=7, fig.align='center' )
library(my1pkg)
my1pkg
is my personal package. It contains one handy function that I find personally very useful!
First, install and load the package, then follow this tutorial to get used to the different functionalities of this wonderful package!
If you want to get the sum of 1
and 2
just do
add(1,2)
If you want to get the sum of 1
and 2
and an accompanying plot just add the option plot = TRUE
like this
add(1,2, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.