# NOT RUN {
string <- '1\t12\t123\t1234\t12345678'
tabs_as_spaces(string)
writeLines(
c(
'-------|-------|-------|-------|-------|',
tabs_as_spaces(string)
) )
writeLines(
c(
'-|--|--|--|--|--|--|--|--|--|--|',
tabs_as_spaces(string, tab.stops=c(2, 3))
) )
writeLines(
c(
'-|--|-------|-------|-------|',
tabs_as_spaces(string, tab.stops=c(2, 3, 8))
) )
# }
Run the code above in your browser using DataLab