Partial R squared with glmm and lmer help

I'm trying to use r2glmm to get partial r squared, but I keep getting the error below. The model A runs fine. Does anyone know how to fix it? Thanks!

A <- glmer(ABCDFAM_ncols$currentdepression ~ ABCDFAM_ncols$rsfmri_cor_ngd_df_scs_hprh_z  + ABCDFAM_ncols$interview_age.x + ABCDFAM_ncols$gender.x + ABCDFAM_ncols$rsfmri_c_ngd_stnvols + (1|FAMID) + (1|site_id_l), data = ABCDFAM_ncols, family = 'binomial', control = cl1)

summary(A)

r2beta(model = A, method = 'sgv', data = 'null')

Error in data[, y] : incorrect number of dimensions

I would try getting rid of the ABCDFAM_ncols$ parts of the formula. You don't need to do that; just use the variables.

Thank you for your help. I got rid of the ABCDFAM_ncols$, but the code didn't work either.

Can you please provide a minimal reprex (reproducible example)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you!

If you've never heard of a reprex before, start by reading "What is a reprex", and follow the advice further down that page.