This function sends a request to PubChem to retrieve synonyms for a given identifier.
It returns a list of synonyms corresponding to the provided identifier.
An object of class 'PubChemInstance_Synonyms', which is a list containing information retrieved from the PubChem database. Synonyms data can be extracted from the returned object using the synonyms function.
Arguments
identifier
A character or numeric value specifying the identifier for the request.
namespace
A character string specifying the namespace for the request. Default is 'cid'.
domain
A character string specifying the domain for the request. Default is 'compound'.
searchtype
A character string specifying the search type. Default is NULL.