Various utility functions that I reuse in different packages or on which I rely when using R interactively.
The easiest way to install rmisc
is with devtools:
library(devtools)
install_github("rmisc", "gschofl")
Note that this packages makes use of the C++11 standard. For it to compile Sys.setenv("PKG_CXXFLAGS"="-std=c++11")
must be set before attempting instalation.
Available function include:
is.empty()
, are_empty()
, all_empty()
wrap()
, trim()
, dup()
, pad()
, split_path()
strsplitN()
: Extract the Nth substring from a vector of strings.strip_ext()
and replace_ext()
to handle file extensions.Partial()
, Compose()
%||%
and %|%
(vectorised verison)linebreak()
: format paragraphs.xvalue()
, xname()
, xattr()
, xset()
install_packages()
, update_packages()
require.all()
, load.all()
, open_Rproj()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.