-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[WIP] Revised version of R 'transpiler' with support for generator methods #483
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Move big templates string as global at top of the file to make methods logic more readable.
- Improve the docstrings.
- Add
--r-prefix
option. - Call
os.makedirs
only once in component_generator. - Imports at top of files.
- Copy the whole js/css dist.
-
generate_rpkg
should use.get
for field access, can't be sure that apackage.json
will contain some the fields used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just need to fix json_to_r_type
and I think we're good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, looks good overall!
Thanks for the additional reviews, I think the code has improved a lot -- both due to the useful factoring of the component generation in @T4rk1n and I had a nice chat about
As for the other options:
|
@T4rk1n Following up on our conversation from Friday, how does this version of |
Modified Graph.react.js to include restyle event
OK, I've taken a stab at using the new generator method approach to component generation for R. If you two don't mind having another look, would be much appreciated. Closes #445.
@rmarren1 @T4rk1n
(N.B. This PR is the up-to-date version of this closed PR)