Export dataframe to SAS file with extension .sas7bdat

I'm trying to export a R dataframe to a SAS file with extension .sas7bdat

Using write_sas() from haven package I get an error.

Is there any alternative solution?