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.
The default
digits = 5in the S4 method fortoJSON(fornumeric) 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 tooptions()$digitsinstead of 5.