You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dpasta should represent consecutive integers compactly as dput does. Below dput is showing 1:3 but dpasta shows 1L, 2L, 3L. (This may be related to ALTREP. See [1] and [2]. )
I learned something here - I was a little surprised that dput() returned the condensed expression, but looking at the source it's clear that it just uses deparse() (well, deparse1() since it's producing a string).
Running that over the results would be easy (deparse() is a more sophisticated and flexible function vs your make_shorter() but produces the same results on those test cases) and non-impactful (results should be identical either way) but I wonder how often such a use-case would come up that it's important (and not more confusing) to have this?
dpasta
should represent consecutive integers compactly asdput
does. Belowdput
is showing1:3
butdpasta
shows1L, 2L, 3L
. (This may be related to ALTREP. See [1] and [2]. )or maybe something like this is enough
The text was updated successfully, but these errors were encountered: