knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(Ipaper)
# devtools::install_github("kongdd/Ipaper") devtools::install_git("https://gitee.com/adv-r/Ipaper") # or from gz file install.packages("../Ipaper_0.1.5.9000.tar.gz", repos = NULL, type = "source", dependencies = TRUE) # $sudo apt-get install libfftw3-dev
rstudio
shortcuts addin| Description | Shortcut |
| ------------------------------------------------- | ------------ |
| copy lines at the cursor position (sublime style) | Alt+c |
| clip lines at the cursor position | Alt+x |
| Insert %<>%
| Ctrl+Shift+, |
| Insert %do% {}
| Ctrl+Shift+D |
| Insert %in% {}
| Ctrl+Shift+I |
draw.colorkey
: modified from lattice, add triangle head and tailgeom_boxplot2
: boxplot without outlierggplot_legend
: get the legend (grid obj) of ggplot object
write_fig
: Unify figure writing functions, e.g. png, pdf, tif, svg
InitCluster
, killCluster
.llply_par
, apply_par
code
, smerge
, subl
, github
: open app at assigned directorymkdir
, touch
dir.show
: open at assigned directory in explorerrunningId
: print the running ID in the consolefprintf
: c style fprintf
melt_list
, melt_tree
, listk
, dcast2
df <- data.frame(year = 2010, day = 1:2, month = 1, site = "A") l <- list(a = df, b = df) melt_list(l, "id") l2 <- listk("type1" = l, "type2" = l) melt_tree(l2, c("type", "id"))
reoder_name
, rm_empty
, match2
write_list2xlsx
, read_xlsx2list
which.na
, which.notna
, which.isnull
, which.notnull
mkTrend
and slope
has been moved to the package rtrend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.