So my question is theoretical rather than a technical error.
I have used the rasterPCA function in RStoolbox to calculate a PCA on environmental raster data for landcover