This function calculates the Spearman-Brown reliability for a two-item scale, which is the recommended measure for two-item scales (rather than Cronbach's alpha, which is used for longer scales.)
spearman_brown(data, items, name = "", SB_only = FALSE)
https://www.r-bloggers.com/five-ways-to-calculate-internal-consistency/
Either the Spearman-Brown coefficient as a single number, or a dataframe including the Pearson correlation coefficient and the scale name