Various utility functions that I reuse in different packages or on which I rely when using R interactively.
The easiest way to install gsmisc
is with devtools:
library(devtools)
install_github("gschofl/gsmisc")
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()
, createProject()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.