openxlsx library and excel formulas

hi friends,
ı have a excel file and ıt has some excel formulas. also ı use it as a template file.
ı need update some data in excel file.
ı load excel into r using open xlsx library then save it with new data.

after that when ı open file excel formulas not working and give some errors.
ıs there any solution for this condition?

It is not entirely clear what you are doing but I think you are overwriting the excel file and wiping out any equations.

It would help if we could see your code

See this FAQ