httptest - 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 10 months ago
httpmocktest-framework
9.31 score 79 stars 1 packages 274 scripts 1.6k downloadshttptest2 - 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 4 months ago
httpmocktesting
9.20 score 28 stars 1 packages 87 scripts 3.3k downloadshttpcache - 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 2 years ago
cachinghttp-clientlogging
6.45 score 12 stars 11 packages 12 scripts 1.2k downloadsskeletor - 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 2 years ago
codecovskeleton-generatortestingtravis-ci
4.02 score 21 stars 2 scripts 561 downloadspivotaltrackR - 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 2 years ago
3.70 score 6 scripts 188 downloadsdistro - 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
3.35 score 1 stars 4 scripts 4.5k downloads