Write xlsm file without removing macro using R

Hi All,

I need help to understand how to write xlsm(macro enabled) file without disable the macro using R .

openxlsx is an option but could still be buggy for xlsm. You'll see when trying for your need