Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Imports:
vctrs (>= 0.4.2),
zip
LinkingTo:
cpp11
cpp11 (>= 0.4.6)
Suggests:
spelling,
testthat,
Expand Down
4 changes: 3 additions & 1 deletion src/write_sheet_file_.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ cpp11::r_string write_sheet_file_list_(const std::string& filename,
xml_file << header;
cpp11::strings sheet_names = x.names();
for (int i = 0; i < sheet_names.size(); i++) {
write_df(x[i], sheet_names[i], row_names, col_names, na_as_string, padding, xml_file);
cpp11::data_frame current_df = x[i];
cpp11::r_string current_sheet_name = sheet_names[i];
write_df(current_df, current_sheet_name, row_names, col_names, na_as_string, padding, xml_file);
}
xml_file << footer;
xml_file << "\n";
Expand Down