This is a crazy new assignment. You will download the code for an R package that is in development, add a fuction, and publish it on github. Then you will add some code that produces a manual page, build the documentation and publish the updated version to github.
install.packages("roxygen2")
library(roxygen2)
#' @export aboutRay
aboutRay <- function() {
cat("Which of these is a lie: \n")
cat("1. Ray's father was the sole survivor of an airplane crash.\n")
cat("2. Tom Cruise ran into Ray so hard at the Academy Award they both spilled their drinks.\n")
cat("3. Ray's niece was Billie Eilish's best friend as they grew up.\n")
cat("4. Ray's father-in-law was accused of covering up the murder of Marilyn Monroe.\n")
cat("5. Ray took his son to the world premiere of the SpongeBob SquarePants movie in 2004.\n")
}
Don't forget the #' @export line
.
Using R Studio, do the following:
#' The aboutRay Function
#'
#' @description This is four truths and one lie.... The lie is xxx.
#'
#' @return NA
#' @export aboutRay
aboutRay <- function() {
cat("Which of these is a lie: \n")
cat("1. Ray's father was the sole survivor of an airplane crash.\n")
cat("2. Tom Cruise ran into Ray so hard at the Academy Award they both spilled their drinks.\n")
cat("3. Ray's niece was Billie Eilish's best friend as they grew up.\n")
cat("4. Ray's father-in-law was accused of covering up the murder of Marilyn Monroe.\n")
cat("5. Ray took his son to the world premiere of the SpongeBob SquarePants movie in 2004.\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.