knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of wfun is to provide useful functions to accelerate coding.
You can install the development version from GitHub with:
# install.packages("remotes") remotes::install_github("ShixiangWang/wfun") # from Gitee # remotes::install_git("https://gitee.com/ShixiangWang/wfun")
Load it with:
library(wfun)
install("ShixiangWang/ezcox") install("ShixiangWang/tinyscholar", gitee = TRUE)
The install() func can be also used to install normal CRAN/BioC packages.
install(c("ggplot2", "Biobase"))
x <- file.path(tempdir(), "ezcox") if (dir.exists(x)) rm_paths(x) clone("ShixiangWang/ezcox", x, reset_remote = TRUE) y <- file.path(tempdir(), "tinyscholar") if (dir.exists(y)) rm_paths(y) clone("ShixiangWang/tinyscholar", y, gitee = TRUE)
x <- tempdir() download("ShixiangWang/tinyscholar", destdir = x) dir(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.