Skip to content

Api v3#1

Closed
a-asil-companioni wants to merge 11 commits intoDisplacement-Tracking-Matrix:mainfrom
a-asil-companioni:apiV3
Closed

Api v3#1
a-asil-companioni wants to merge 11 commits intoDisplacement-Tracking-Matrix:mainfrom
a-asil-companioni:apiV3

Conversation

@a-asil-companioni
Copy link
Copy Markdown
Member

No description provided.

- Note: The base / native pipe operator was introduced in the R 4.1.0 update.
- Remove calls to import the magrittr library or calls to import the pipe specifically.
- Replace existing magrittr pipe calls with the base R pipe.
- This is as opposed to using jsonlite::fromJSON(). Using httr2::resp_body_string() and then fromJSON() is not as clean as just using httr2::resp_body_json(). httr2::resp_body_json() does uses fromJSON() under the hood.

- Some comments were edited or added to reflect the changes in code, particularly regarding the use of as.data.frame() and the expectation that resp_body_json(response, simplifyVector=TRUE)$result will likely be a dataframe.
- The refactoring is such that the codebase becomes more in line with the tidyverse style guide.

Refactor codebase and remove unneeded comments

Refactor edit
Update tweak

Tweak for V3

Edit V3 update commit

Update V3 -- add import call

Update v3 -- tweak set_subscription key
Update Roxygen2-generated files
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.

1 participant