This should do it.
Source 1: https://arxiv.org/pdf/1706.03409
# Clustered Wilcox test
clusWilcox.test(x ~ grp + cluster(cid), dat.cl, method = "rgl")
Source 2: https://www.statmethods.net/stats/nonparametric.html
# independent 2-group Mann-Whitney U Test
wilcox.test(y~A)
# where y is numeric and A is A binary factor
# independent 2-group Mann-Whitney U Test
wilcox.test(y,x) # where y and x are numeric
# dependent 2-group Wilcoxon Signed Rank Test
wilcox.test(y1,y2,paired=TRUE) # where y1 and y2 are numeric
Next time please include a reproducible example.