Inspiration shortened it.
165 with normal input. 117 if I don't coerce b into the right format.
Code:
morris = function(b=1) {
b = as.integer(strsplit(as.character(b),NULL)[[1]])
c = b
repeat {
cat(b,"\n",sep="")
n = x = -1
for (i in b) {
if (i==x) c[n]=c[n]+1
else {
n=n+2
c[n+1]=x=i
c[n]=1
}
}
b = c
}
}
