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

fix r process to JSON #56

Merged
merged 3 commits into from
Feb 22, 2022
Merged

fix r process to JSON #56

merged 3 commits into from
Feb 22, 2022

Conversation

jonathom
Copy link
Member

In Cookbook Section "Output: Process as JSON"

  • uses as() instead of deprecated create_user_process
  • uses rjson::toJSON instead of jsonlite::toJSON, because the latter is adding [] brackets around the process_id by default, which causes errors

@jonathom jonathom requested a review from m-mohr February 21, 2022 15:34
Copy link
Member

@m-mohr m-mohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've updated the code above so that it works with jsonlite and includes the "process_graph".

In the future we can update this to simply process_json <- processToJSON(process). I've created a PR to add this functionality to the next version, see Open-EO/openeo-r-client#114

@m-mohr m-mohr merged commit b4c29be into master Feb 22, 2022
@m-mohr m-mohr deleted the fix-cb-r-json branch February 22, 2022 10:37
@jonathom
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants