For fun here is an alternative:
x <- 4321 read.fwf(textConnection(as.character(x)), rep(1, nchar(x)))
The only advantage I can think of is the possibility of exploding your input in different widths, although, I think, you can do this with a substring as well.
source share