Skip to content

Commit 21a3c51

Browse files
handle wasted space after \n by adding sep=""
1 parent a210f23 commit 21a3c51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vignettes/datatable-programming.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ DT <- data.table(a = 1:3, b = 4:6)
478478
tryCatch({
479479
setkey(DT, "nonexistent_col")
480480
}, dt_missing_column_error = function(e) {
481-
cat("Missing column detected:", conditionMessage(e), "\n")
481+
cat("Missing column detected:", conditionMessage(e), "\n", sep="")
482482
}, error = function(e) {
483-
cat("Other error:", conditionMessage(e), "\n")
483+
cat("Other error:", conditionMessage(e), "\n", sep="")
484484
})
485485
486486
# Handle type mismatches in operations
@@ -490,9 +490,9 @@ DT2 <- data.table(id = 1:3, value = 1:3)
490490
tryCatch({
491491
fintersect(DT1, DT2)
492492
}, dt_join_type_mismatch_error = function(e) {
493-
cat("Type mismatch in join:", conditionMessage(e), "\n")
493+
cat("Type mismatch in join:", conditionMessage(e), "\n", sep="")
494494
}, error = function(e) {
495-
cat("Other error:", conditionMessage(e), "\n")
495+
cat("Other error:", conditionMessage(e), "\n", sep="")
496496
})
497497
```
498498

0 commit comments

Comments
 (0)