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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c945b51e-4cbb-a099-114c-3aa437496bd5 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BBF2:11CDE6:7A02E:96F8E:6991D62C |
| html-safe-nonce | cb9a74ed2d5e8c416931e44fa163b0556f635891b4668577b684111e39a0cba4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkYyOjExQ0RFNjo3QTAyRTo5NkY4RTo2OTkxRDYyQyIsInZpc2l0b3JfaWQiOiIzMDA0MDIxNDQ0MjM5ODA4MDQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 33d524bfd6c9cd1ed72a301901b48ff854f613ef33d2a737b93f1a1546565811 |
| hovercard-subject-tag | pull_request:31613311 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width