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

WIP Initial version of updated code for R transpiler #449

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e39bcf1
Initial version of updated code for R transpiler
Nov 5, 2018
23bb710
Fixed creation of R functions for components
Nov 5, 2018
9ce9509
Fixed creation of R functions for components, triple quote issue
Nov 5, 2018
ed5d5db
Edits related to PR comments
Nov 9, 2018
3df1cd6
Edited _all_keywords.py so R/Py kwlists similarly named.
Nov 9, 2018
451283f
Updated base_component.py kwlist >> python_keywords
Nov 9, 2018
5998545
Attempting to resolve pylint warnings
Nov 9, 2018
6606943
Resolve pylint warning by removing unused generate_class_r code
Nov 9, 2018
4575b9f
Updated base_component.py
Nov 10, 2018
9bb7603
Updated component_loader.py
Nov 10, 2018
f1e47f5
Merge branch 'master' into R
rpkyle Nov 10, 2018
f4cd844
Updated documentation for generate_classes_r
Nov 10, 2018
aae11d6
Updated base_component.py to support .Rd without roxygen2
Nov 11, 2018
62bf001
Updated component_loader.py to import generate_help_file_r
Nov 11, 2018
89b7b85
Updated component_loader.py and base_component.py
Nov 12, 2018
664e516
Modified base_component.py to address propNames resolution problem
Nov 12, 2018
3bf21b3
Updated keyword list to include R reserved words
Nov 23, 2018
84a6745
Changes to support transpiling of JSON>>R within Python
Nov 23, 2018
2a4ac5a
Changes to support transpiling of JSON>>R within Python
Nov 23, 2018
3341d8e
Restore export_string generation
Nov 23, 2018
0d7943d
Updates to component loader/base component
Nov 27, 2018
e182736
Merged RPK branch
Nov 27, 2018
13d0d71
Updates to generate_js_metadata_r
Nov 27, 2018
8a43d98
Removed external_url parsing
Nov 28, 2018
8d2d538
Clarified comments in code
Nov 28, 2018
008598f
Added statements to copy JS deps into inst/lib
Nov 28, 2018
918a073
Updated base_component.py
Nov 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion dash/development/_all_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# >>> import keyword
# >>> keyword.kwlist

kwlist = set([
python_keywords = set([
'and',
'elif',
'is',
Expand Down Expand Up @@ -42,3 +42,31 @@
'def',
'lambda'
])

# This is a set of R reserved words that cannot be used as function argument names.
#
# Reserved words can be obtained from R's help pages by executing the statement below:
# > ?reserved

r_keywords = set([
'if',
'else',
'repeat',
'while',
'function',
'for',
'in',
'next',
'break',
'TRUE',
'FALSE',
'NULL',
'Inf',
'NaN',
'NA',
'NA_integer_',
'NA_real_',
'NA_complex_',
'NA_character_',
'...'
])
Loading