I created a workbook, named workbook_1
, using the xlsx R package, like this:
workbook_1 = xlsx::createWorkbook()
It has the next class:
I need to upload this file to a bucket path in AWS, S3. I tried with this code that worked for me previously for .csv files:
s3write_using(workbook_1, object = paste0("file_location_path" + "workbook_1.xlsx" ), FUN=write.xlsx, bucket = "bucket_S3")
But i get this error:
I think that the error is because my workbook actually does not have a xlxs extension. Do you guys know how can I convert my file workbook_1
to xlsx?
Thanks in advance for your help!