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
fg
Foreground Color Codes
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

caller()
Get Name of Calling Function
function_locals()
Get Function Environment as List
locals()
Get specified Environment as List
sys.exit()
Terminate a non-interactive R Session

Documentation

Functions for reading, checking and writing documentation

DOCSTRING_TEMPLATE
Docstring Template
check_pkg_docs()
Check Documented Functions in a Package
find_description_file()
Find DESCRIPTION File
get_docstring()
Get docstring for a Function
get_formals()
Get formals of a Function
get_pkg_docs()
Get Documented Functions in a Package
read_description_file()
Read DESCRIPTION File into a List
split_docstring()
Split a docstring into a Head, Param and Tail Part
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
trace_package()
Traces function calls from a package
untrace_package()
Untraces function calls from a package

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() 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