#' Self Update from Github
#' Self updates the package, acctually it reinstalls it.
#' @export
#'
#' @examples
#' self_update()
self_update <- function(){
waRRior::print_if_verbose("Initiating self update", T)
install_github("joelgsponer/warrior2")
waRRior::print_if_verbose("Done", T)
}
# ---
#' Refresh
#'
#' @return
#' @export
#'
#' @examples
refresh_warrior <- function(){
detach("package:waRRior", unload=TRUE)
library(waRRior)
}
# ---
#' Detach
#'
#' @return
#' @export
#'
#' @examples
detach_warrior <- function(){
detach("package:waRRior", unload=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.