Skip to content

Commit f2b8408

Browse files
committed
[R/paste] add a few stringi::stri_join
1 parent c45f2f9 commit f2b8408

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

R/class-workbook.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -3478,7 +3478,7 @@ wbWorkbook <- R6::R6Class(
34783478

34793479

34803480
if (!is.null(cc)) {
3481-
cc$r <- paste0(cc$c_r, cc$row_r)
3481+
cc$r <- stri_join(cc$c_r, cc$row_r)
34823482
# prepare data for output
34833483

34843484
# there can be files, where row_attr is incomplete because a row

R/utils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ naToNULLList <- function(x) {
2020
paste_c <- function(..., sep = "", collapse = " ", unlist = FALSE) {
2121
x <- c(...)
2222
if (unlist) x <- unlist(x, use.names = FALSE)
23-
paste(x[nzchar(x)], sep = "", collapse = collapse)
23+
stri_join(x[nzchar(x)], sep = sep, collapse = collapse)
2424
}
2525

2626
`%||%` <- function(x, y) if (is.null(x)) y else x

src/helper_functions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void wide_to_long(Rcpp::DataFrame z, Rcpp::IntegerVector vtyps, Rcpp::DataFrame
265265

266266

267267
// [[Rcpp::export]]
268-
Rcpp::List build_cell_merges(Rcpp::List comps){
268+
Rcpp::List build_cell_merges(Rcpp::List comps) {
269269

270270
size_t nMerges = comps.size();
271271
Rcpp::List res(nMerges);

0 commit comments

Comments
 (0)