Fabian's R tools