I want to create a new excel form from R that will be imported on the API. When I create an excel file using the “xlsx” or “openxlsx” packages, the form is not valid when I test it on: ODK - XLSForm Online v2.x
I get this error: Error: The survey sheet is either empty or missing important column headers.
However, if I open this same form with Excel and just click on save, the form becomes valid.
I also tried to change the encoding of my R script but it did not work.
@Kal_Lam Thank you very much for your answer! I don’t think I forgot anything, when I open the two documents in Excel (the document generated by R which is invalid and the document generated by R and then saved in Excel which is valid), their content is identical.
@cmn, thank you for sharing this with the community! Maybe sharing the link of the same with the community should also help other users solve their issues if they happen to face them in the future.