Skip to content

Commit

Permalink
fix warning message. closes #700
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jul 20, 2023
1 parent cda0a8e commit ba6c2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class-workbook.R
Original file line number Diff line number Diff line change
Expand Up @@ -3914,7 +3914,7 @@ wbWorkbook <- R6::R6Class(

type <- match.arg(type)

if (length(cols) > 2)
if (length(cols) > 2 && any(diff(cols) != 1))
warning("cols > 2, will create range from min to max.")

## rows and cols
Expand Down

0 comments on commit ba6c2c0

Please sign in to comment.