-
Notifications
You must be signed in to change notification settings - Fork 654
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
Switch from rjson to RJSONIO #41
Comments
seems to work well; thanks |
I am going to think this over before switching. The main advantage of this approach is that you can write the JS functions with new lines and the payload does not get screwed up. This would then allow us to pass arbitrary JS objects from R, not just functions. |
As I struggle with date handling in the various libraries, I am thinking this functionality might be necessary. I'll start a new issue to discuss the handling of dates in x. |
Yes. There should be a way to do this within R rather than relying on d3 to do the formatting. I think you are the best person to be able to resolve this, as you probably work with lots of time series. Let me know if you want to test out some ideas/thoughts. Thanks again for doing this. |
I need to add a few tests to make sure that this feature works as I make more changes to rCharts. I am thinking a more organized test suite would do a lot of good, automating things. I wonder how tests work when it involves visually inspecting a page opened by the browser. |
Done. |
The use case is when I want to pass JS objects in my JSON payload. My current approach is to enclose JS objects between
#!
and!#
tags, and use a regular expression to remove the quotes. Here is an example.I have a function
toObj
that destringifies contents within special markup tags.So essentially, I would do something like
toObj(toJSON(x))
. There are three cases.The first case is what I am doing now, using
rjson::toJSON
The second case is using
RJSONIO::toJSON
, but not invoking the.escapeEscapes
option.If I use the
.escapeEscapes = F
option inRJSONIO::toJSON
, I get exactly what I want.So, I think it makes sense to switch to RJSONIO.
The text was updated successfully, but these errors were encountered: