Coder Social home page Coder Social logo

ipaper's Introduction

Ipaper

R-CMD-check codecov License CRAN

Installation

# 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

FUNCTIONS

rstudio shortcuts addin

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.

Visualization

  • write_fig: Unify figure writing functions, e.g. png, pdf, tif, svg

Parallel functions

  • InitCluster, killCluster.
  • llply_par, apply_par

Base tools

  • code, smerge, subl, github: open app at assigned directory
  • mkdir, touch
  • dir.show: open at assigned directory in explorer
  • runningId: print the running ID in the console
  • fprintf: 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")
#>    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    A
  • reoder_name, rm_empty, match2
  • write_list2xlsx, read_xlsx2list
  • which.na, which.notna, which.isnull, which.notnull

Updates

  • mkTrend and slope has been moved to the package rtrend

ipaper's People

Contributors

kongdd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ipaper's Issues

Is the installation corrupt on new R version?

remotes::install_github("kongdd/Ipaper")
Downloading GitHub repo kongdd/Ipaper@HEAD
Error: Failed to install 'Ipaper' from GitHub:
  lazy-load database '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/withr/R/withr.rdb' is corrupt
In addition: Warning messages:
1: In get0(oNam, envir = ns) : restarting interrupted promise evaluation
2: In get0(oNam, envir = ns) : internal error -3 in R_decompress1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.