Title: Remove newline characters from JSON by jranke · Pull Request #3 · cjgb/rPython-win · GitHub
Open Graph Title: Remove newline characters from JSON by jranke · Pull Request #3 · cjgb/rPython-win
X Title: Remove newline characters from JSON by jranke · Pull Request #3 · cjgb/rPython-win
Description: Thanks for this nice package! In some cases (did not figure out when and when not), toJSON leads to representations like > toJSON(x_2) [1] "[ [\n \"Scenario\",\n\"Waterbody\", .... instead of > toJSON(x_1) [1] "[ [ \"Scenario\", \"Waterbody\", ... which makes python.assign fail with the message SyntaxError: EOL while scanning string literal This can be avoided by substituting the newline characters in the JSON string before it is passed to the Python interpreter. I am not clear what the difference between the code in this github project and the r-forge project is, this also applies to the code on r-forge. I only submitted the fix here, as it is easier on github.
Open Graph Description: Thanks for this nice package! In some cases (did not figure out when and when not), toJSON leads to representations like > toJSON(x_2) [1] "[ [\n \"Scenario\",\n\"Waterbody\&...
X Description: Thanks for this nice package! In some cases (did not figure out when and when not), toJSON leads to representations like > toJSON(x_2) [1] "[ [\n \"Scenario\",\n\&...
Opengraph URL: https://github.com/cjgb/rPython-win/pull/3
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b0b6886b-364b-92fb-3ade-2467917b7eee |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BA62:BA7E0:135CAF:19C5DA:698F4190 |
| html-safe-nonce | fba57e584a03c19745928271cb936d38a0fec1e3f68108c4cd522a424bdf8d4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTYyOkJBN0UwOjEzNUNBRjoxOUM1REE6Njk4RjQxOTAiLCJ2aXNpdG9yX2lkIjoiNDA3NTQwODAzMjcyODU2NDExMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e5d72ea9650c11152a97117acf056f9aa95f9997bdd152fb4f0daf6813998c13 |
| hovercard-subject-tag | pull_request:31613311 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cjgb/rPython-win/pull/3/files |
| twitter:image | https://avatars.githubusercontent.com/u/3621037?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3621037?s=400&v=4 |
| og:image:alt | Thanks for this nice package! In some cases (did not figure out when and when not), toJSON leads to representations like > toJSON(x_2) [1] "[ [\n \"Scenario\",\n\"Waterbody\&... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cjgb/rPython-win git https://github.com/cjgb/rPython-win.git |
| octolytics-dimension-user_id | 1321567 |
| octolytics-dimension-user_login | cjgb |
| octolytics-dimension-repository_id | 14503010 |
| octolytics-dimension-repository_nwo | cjgb/rPython-win |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14503010 |
| octolytics-dimension-repository_network_root_nwo | cjgb/rPython-win |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d6ba6f2bfbf6399a7c07495a912727369e95bfe8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width