R Functions for Gaussian Process Regression