# 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)
install.packages("Ipaper", repos = "https://rpkgs.r-universe.dev")
# $sudo apt-get install libfftw3-dev| Description | Shortcut |
|---|---|
| copy lines at the cursor position (sublime style) | Alt+C |
| clip lines at the cursor position | Ctrl+X |
| Select word | Ctrl+D |
Insert %<>% |
Ctrl+Shift+, |
Insert %do% {} |
Ctrl+Shift+D |
Insert %in% {} |
Ctrl+Shift+I |
| Open in VSCode | Alt+Shift+V |
| Open in smerge | Ctrl+Shift+G |
| Open in subl | Alt+Shift+L |
Note that VSCode, smerge or subl should be in the system path, if you want to use it.
After install, run Ipaper::key_blind() to make those shortcuts work.
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,touchdir.show: open at assigned directory in explorerrunningId: print the running ID in the consolefprintf: c stylefprintfmelt_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")
#> id year day month site
#> 1: a 2010 1 1 A
#> 2: a 2010 2 1 A
#> 3: b 2010 1 1 A
#> 4: b 2010 2 1 A
l2 <- listk("type1" = l, "type2" = l)
melt_tree(l2, c("type", "id"))
#> type id year day month site
#> 1: type1 a 2010 1 1 A
#> 2: type1 a 2010 2 1 A
#> 3: type1 b 2010 1 1 A
#> 4: type1 b 2010 2 1 A
#> 5: type2 a 2010 1 1 A
#> 6: type2 a 2010 2 1 A
#> 7: type2 b 2010 1 1 A
#> 8: type2 b 2010 2 1 Areoder_name,rm_empty,match2write_list2xlsx,read_xlsx2listwhich.na,which.notna,which.isnull,which.notnull
mkTrendandslopehas been moved to the packagertrend