initial commit of _spatial.r