Skip to content

Respect options()$digits #14

Description

@dholstius

The default digits = 5 in the S4 method for toJSON (for numeric) is pretty low. No doubt this keeps default output to a healthy size, but it's insufficient in some applications, like mapping. See, for example, jcheng5/leaflet-shiny#13 and ramnathv/rCharts#248.

Perhaps toJSON() might allow for user-level specification of numeric precision, defaulting to options()$digits instead of 5.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions