Skip to contents

Base Extensions

Extended versions of base R functions

capture.output2()
Capture output from a command
cat2()
Concatenate and Print
catf()
Format and Print
dput2()
Return ASCII representation of an R object
help2()
Return help for topic
named()
Create automatically named List
norm_path()
Return Normalized Path

Condition Checking

Function for condition checking

ifthen()
Shortcut for multiple if else statements
is.none()
Truth checking as in Python
`%none%`
Return Default if None

Function Writing

Functions for writing functions

DOCSTRING_TEMPLATE
Docstring Template
caller()
Get Name of Calling Function
function_locals()
Get Function Environment as List
get_docstring()
Get docstring for a Function
get_formals()
Get formals of a Function
locals()
Get specified Environment as List
split_docstring()
Split a docstring into a Head, Param and Tail Part
sys.exit()
Terminate a non-interactive R Session
update_docstring()
Update docstring for a Function

Live Programming

Functions for experimenting in interactive (live) R sessions

corn()
Return Corners of Matrix like Objects
rm_all()
Remove all objects from global environment
stub()
Stub Function Arguments

Path Finding

Functions returning important paths

config_dir()
Get Normalized Configuration Directory Path of a Program
config_file()
Get Normalized Configuration File Path of a Program
data_dir()
Get Normalized Data Directory Path of a Program
getfd()
Get File Directory
getpd()
Get Project Directory
home()
Get USERPROFILE or HOME
xdg_config_home()
Get XDG_CONFIG_HOME
xdg_data_home()
Get XDG_DATA_HOME

S3 Methods

S3 methods

predict(<numeric>)
Predict Method for Numeric Vectors

Function returning datetime

now()
Get Current Date and Time as string
now_ms()
Get Current Date and Time as string

Deprecated

Deprecated functions that should no longer be used

cat0()
Concatenate and Print
cat0n()
Concatenate and Print
catfn()
Format and Print
catn()
Concatenate and Print
catnn()
Concatenate and Print
catsn()
Concatenate and Print