Miscellaneous functions commonly used in other packages maintained by 'Yihui Xie'.