httptest2 - Test Helpers for 'httr2'
Testing and documenting code that communicates with remote servers can be painful. This package helps with writing tests for packages that use 'httr2'. It enables testing all of the logic on the R sides of the API without requiring access to the remote service, and it also allows recording real API responses to use as test fixtures. The ability to save responses and load them offline also enables writing vignettes and other dynamic documents that can be distributed without access to a live server.
Last updated 17 days ago
httpmocktesting
26 stars 2.92 score 37 dependencies 1 dependentshttptest - A Test Environment for HTTP Requests
Testing and documenting code that communicates with remote servers can be painful. Dealing with authentication, server state, and other complications can make testing seem too costly to bother with. But it doesn't need to be that hard. This package enables one to test all of the logic on the R sides of the API in your package without requiring access to the remote service. Importantly, it provides three contexts that mock the network connection in different ways, as well as testing functions to assert that HTTP requests were---or were not---made. It also allows one to safely record real API responses to use as test fixtures. The ability to save responses and load them offline also enables one to write vignettes and other dynamic documents that can be distributed without access to a live server.
Last updated 6 months ago
httpmocktest-framework
79 stars 4.01 score 37 dependencies 1 dependentshttpcache - Query Cache for HTTP Clients
In order to improve performance for HTTP API clients, 'httpcache' provides simple tools for caching and invalidating cache. It includes the HTTP verb functions GET, PUT, PATCH, POST, and DELETE, which are drop-in replacements for those in the 'httr' package. These functions are cache-aware and provide default settings for cache invalidation suitable for RESTful APIs; the package also enables custom cache-management strategies. Finally, 'httpcache' includes a basic logging framework to facilitate the measurement of HTTP request time and cache performance.
Last updated 1 years ago
cachinghttp-clientlogging
12 stars 2.86 score 9 dependencies 10 dependentspivotaltrackR - A Client for the 'Pivotal Tracker' API
'Pivotal Tracker' <https://www.pivotaltracker.com> is a project management software-as-a-service that provides a REST API. This package provides an R interface to that API, allowing you to query it and work with its responses.
Last updated 1 years ago
0.63 score 8 dependenciesskeletor - An R Package Skeleton Generator
A tool for bootstrapping new packages with useful defaults, including a test suite outline that passes checks and helpers for running tests, checking test coverage, building vignettes, and more. Package skeletons it creates are set up for pushing your package to 'GitHub' and using other hosted services for building and test automation.
Last updated 1 years ago
codecovskeleton-generatortestingtravis-ci
21 stars 2.07 score 0 dependenciesdistro - Linux Distribution Properties
In order to provide unified access to Linux distribution details in R, this package wraps the various files and commands that may exist on a system. It is similar in spirit to the 'lsb_release' command and the 'Python' package of the same name.
Last updated 3 years ago
1 stars 1.21 score 0 dependencies