# Cluster-robust error for pearson correlation

How can I get cluster-robust errors (for generating confidence intervals) on a Pearson correlation coefficient?

I know that I can generate cluster-robust errors for a coefficient in a linear model. And I know that square-root of the r-squared in the linear model is equivalent to the Pearson correlation. But I don't know how to get an appropriate standard error on the Pearson correlation.