Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large Number formatting #39

Closed
shingav opened this issue Dec 30, 2013 · 5 comments
Closed

Large Number formatting #39

shingav opened this issue Dec 30, 2013 · 5 comments

Comments

@shingav
Copy link

shingav commented Dec 30, 2013

There seems to be an issue when large numbers, for eg:, 500005, is being sent to CouchDB. It basically fails with a bad response. More googling leads me to a similar issue being discussed here - ramnathv/rCharts#141.

Is there any solution possible from the R4CouchDB as temporary or a permanent fix?

@shingav
Copy link
Author

shingav commented Dec 30, 2013

Here is a more elaborate explanation - ramnathv/rCharts#141 (comment)

wactbprot pushed a commit that referenced this issue Dec 30, 2013
	geändert:   R4CouchDB/DESCRIPTION
	geändert:   R4CouchDB/NAMESPACE
	geändert:   R4CouchDB/R/cdbIni.R
	geändert:   R4CouchDB/man/cdbIni.Rd
	neue Datei:   R4CouchDB_0.3.3.tar.gz
	geändert:   README.md
	neue Datei:   example/3dplot.pdf
@wactbprot
Copy link
Owner

with RJSONIO_1.0-3 I get valid JSON for both:

> a = 700005
> b = toJSON(a)
> b
[1] "[  7e+05 ]"
> a = 700004
> b = toJSON(a)
> b
[1] "[  7e+05 ]"

However the number of digits are indeed problematic. Therfore I generated R4CouchDB_0.3.3 and added a digits param for the function cdbIni(). I set the default to 7 (see digits)
HTH

@shingav
Copy link
Author

shingav commented Dec 31, 2013

Thanks a lot.

@wactbprot
Copy link
Owner

seems to work

@shingav
Copy link
Author

shingav commented Jan 15, 2014

Thank You. I will pick up this build soon and make necessary changes to my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants