# need trycatch due to instability from C level `error` call in getting the
# function call

Argument `x` contains a "bytes" encoded string at index [1], which is disallowed.

[1] "Argument `x` contains a \"bytes\" encoded string at index [1], which is disallowed."

substr2_ctl(rnd.1, 2, 4, type = "width", round = "start")

substr2_ctl(rnd.1, 2, 4, type = "width", round = "stop")

substr2_ctl(rnd.1, 2, 4, type = "width", round = "neither")

substr2_ctl(rnd.1, 2, 4, type = "width", round = "both")

substr2_ctl(rnd.2, 2, 3, type = "width", round = "start")

substr2_ctl(rnd.2, 2, 3, type = "width", round = "stop")

substr2_ctl(rnd.2, 1, 2, type = "width", round = "start")

substr2_ctl(rnd.2, 1, 2, type = "width", round = "stop")

substr2_ctl(rnd.2, 3, 4, type = "width", round = "start")

substr2_ctl(rnd.2, 3, 4, type = "width", round = "stop")

substr2_ctl(lorem.cn.col.2, 1, 2, type = "width")

# handling of subsetting when we end up in middle of wide display characters

substr2_ctl(lorem.cn.col.2, 1, 3, type = "width")

substr2_ctl(lorem.cn.col.2, 2, 3, type = "width")

substr2_ctl(lorem.cn.col.2, 2, 4, type = "width")

substr2_ctl(lorem.cn.col.2, 3, 4, type = "width")

substr2_ctl(lorem.cn.col.2, 1, 2, type = "width", round = "stop")

substr2_ctl(lorem.cn.col.2, 1, 3, type = "width", round = "stop")

substr2_ctl(lorem.cn.col.2, 2, 3, type = "width", round = "stop")

substr2_ctl(lorem.cn.col.2, 2, 4, type = "width", round = "stop")

substr2_ctl(lorem.cn.col.2, 3, 4, type = "width", round = "stop")

substr2_ctl(lorem.cn.col.2, 1, 2, type = "width", round = "both")

substr2_ctl(lorem.cn.col.2, 1, 3, type = "width", round = "both")

substr2_ctl(lorem.cn.col.2, 2, 3, type = "width", round = "both")

substr2_ctl(lorem.cn.col.2, 2, 4, type = "width", round = "both")

substr2_ctl(lorem.cn.col.2, 3, 4, type = "width", round = "both")

substr2_ctl(lorem.cn.col.2, 1, 2, type = "width", round = "neither")

substr2_ctl(lorem.cn.col.2, 1, 3, type = "width", round = "neither")

substr2_ctl(lorem.cn.col.2, 2, 3, type = "width", round = "neither")