qiime 2R-Error:`x` and `y` must share the same src, set `copy` = TRUE (may be slow).

I think I solved this problem by edit the shannon file,like this

#moves the sample names to a new column that matches the metadata and allows them to be merged
shannon<-shannon$data %>% rownames_to_column("SampleID")
head(shannon)