Reimplementations of functions introduced since R 3.0
