Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Last active January 18, 2018 23:20
Show Gist options
  • Save mdsumner/129f7290f90ec424275222897bf0d3bd to your computer and use it in GitHub Desktop.
Save mdsumner/129f7290f90ec424275222897bf0d3bd to your computer and use it in GitHub Desktop.

There's a more compelling illustration here: https://github.com/mdsumner/dputtruncat/blob/master/README.md

roms_names <- c("xi_rho", "eta_rho", "s_rho", "ocean_time", "s_w", "xi_u", 
                "eta_u", "xi_v", "eta_v", "tracer", "boundary", "xi_psi", "eta_psi")
axes_summary <- structure(c(1443L, 392L, 31L, 31L, 32L, 1442L, 392L, 1443L, 391L, 
                            2L, 4L, 1442L, 391L), .Names = roms_names)

dput(axes_summary)

Why is dput output truncated here? (In R 3.4.1, in RStudio and in some terminals - e.g. Chrome Secure Shell)

structure(c(1443L, 392L, 31L, 31L, 32L, 1442L, 392L, 1443L, 391L, 
            2L, 4L, 1442L, 391L), .Names = c("xi_rho", "eta_rho", "s_rho", 
...

@barryrowlingson
Copy link

Is it? I get:

> dput(axes_summary)
structure(c(1443L, 392L, 31L, 31L, 32L, 1442L, 392L, 1443L, 391L, 
2L, 4L, 1442L, 391L), .Names = c("xi_rho", "eta_rho", "s_rho", 
"ocean_time", "s_w", "xi_u", "eta_u", "xi_v", "eta_v", "tracer", 
"boundary", "xi_psi", "eta_psi"))

R 3.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment