The goal of ‘k5’ is to offer miscellaneous quality of life functions used by Kiernan Nicholls during interactive programming. They make things easier for me but are bad for scripts and packages.
You can install the release version of this package from CRAN:
The development version can be installed from GitHub:
# install.packages("remotes") remotes::install_github("kiernann/k5")
A list of frequently used packages can be loaded from a file.
load_my_packages() #> ✔ load 19 packages from #> '/home/kiernan/R/x86_64-pc-linux-gnu-library/4.1/k5/PACKAGES'
Some functions wrap common combos like
mean(x %in% y) or
Some functions wrap functions from other packages with different defaults.
There are also some handy shortcuts for the
df <- tail(mtcars, 50) write_last() #> ℹ `.Last.value` has class 'data.frame' #> ✓ Saved tab-separated file '/tmp/RtmpFTaCH6/file15127cc7851b.tsv' (1.25K) vc <- sample(state.name, 1000, replace = TRUE) write_last() #> ℹ `.Last.value` has class 'character' #> ✓ Saved line-separated file '/tmp/RtmpFTaCH6/file151235b67c89.txt' (9.19K)