You can reshape a correlation matrix into a long format in R using the `melt()` function from the reshape2 package, which takes a matrix as an argument and returns a data frame with three columns: Var1, Var2, and value.