need help with rgbif

need help with rgbif
Could you help write a script for R to find synonyms for species names. For example, is it possible to get a list of alternative names of species Carex acuta, Sorbus aucuparia and others…

@maksim.golubev.21

# First you get the taxonKey ("usageKey") 

rgbif::name_backbone("Carex acuta")$usageKey

# then you send it to name_usage
rgbif::name_usage(2722833,data="synonyms",limit=1000)$data$taxonomicStatus

Following up, were you able to get your answer with the provided?