The goal of MyPackage is for hw05.
devtools::install_github("sunqihui1221/MyPackage")
This is a basic example which shows you how to solve a common problem:
library(MyPackage)
plus10 <- function(x, y) {
for (i in 1:length(x)) {
x[i] <- x[i] + 10
}
if (y == TRUE) {
x[1]
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.