fixes for PCA and TimeSeries R modules