Skip to content

Commit

Permalink
fix reading, when package is not loaded. in case of openxlsx::read_wo…
Browse files Browse the repository at this point in the history
…rkbook()
  • Loading branch information
JanMarvin committed Aug 11, 2024
1 parent dcd992d commit 2a44f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ SEXP buildMatrixMixed(CharacterVector v,
m(rowInd[i], colInd[i]) = v[i];

// convert numerics to dates
Rcpp::Function cTD("convertToDate");

Rcpp::Environment pkg = Rcpp::Environment::namespace_env("openxlsx");
Rcpp::Function cTD = pkg["convertToDate"];
// this will be the return data.frame
List dfList(nCols);

Expand Down

0 comments on commit 2a44f7c

Please sign in to comment.