How to reverse PCA in prcomp to get original data

I want to reverse the PCA calculated from prcomp to get back to my original data. I thought something like the following would work: pca$x %*% t(pca$rotation) but it doesn't. The following link...