Skip to content

Commit 31273a7

Browse files
committed
fix bad gh actions badge in readme
1 parent fdfe322 commit 31273a7

2 files changed

Lines changed: 20 additions & 47 deletions

File tree

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ knitr::opts_chunk$set(
1717

1818
[![cran checks](https://badges.cranchecks.info/worst/vcr.svg)](https://CRAN.R-project.org/package=vcr)
1919
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
20-
[![R-check](https://github.com/ropensci/vcr/workflows/R-check/badge.svg)](https://github.com/ropensci/vcr/actions/)
20+
[![R-check](https://github.com/ropensci/vcr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/vcr/actions/workflows/R-CMD-check.yaml)
2121
[![codecov](https://codecov.io/gh/ropensci/vcr/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ropensci/vcr)
2222
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/vcr)](https://github.com/r-hub/cranlogs.app)
2323
[![cran version](https://www.r-pkg.org/badges/version/vcr)](https://cran.r-project.org/package=vcr)

README.md

Lines changed: 19 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
2-
<!-- README.md is generated from README.Rmd. Please edit that file -->
3-
41
# vcr <img src="man/figures/logo.png" align="right" height="120" alt="" />
52

6-
[![cran
7-
checks](https://badges.cranchecks.info/worst/vcr.svg)](https://CRAN.R-project.org/package=vcr)
8-
[![Project Status: Active – The project has reached a stable, usable
9-
state and is being actively
10-
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
11-
[![R-check](https://github.com/ropensci/vcr/workflows/R-check/badge.svg)](https://github.com/ropensci/vcr/actions/)
3+
[![cran checks](https://badges.cranchecks.info/worst/vcr.svg)](https://CRAN.R-project.org/package=vcr)
4+
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
5+
[![R-check](https://github.com/ropensci/vcr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/vcr/actions/workflows/R-CMD-check.yaml)
126
[![codecov](https://codecov.io/gh/ropensci/vcr/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ropensci/vcr)
13-
[![rstudio mirror
14-
downloads](https://cranlogs.r-pkg.org/badges/vcr)](https://github.com/r-hub/cranlogs.app)
15-
[![cran
16-
version](https://www.r-pkg.org/badges/version/vcr)](https://cran.r-project.org/package=vcr)
7+
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/vcr)](https://github.com/r-hub/cranlogs.app)
8+
[![cran version](https://www.r-pkg.org/badges/version/vcr)](https://cran.r-project.org/package=vcr)
9+
1710

18-
{vcr} records and replays HTTP requests so you can test your API package
19-
with speed and confidence. It makes your tests independent of your
20-
internet connection (so they work on CRAN!) and because your tests get
21-
much much faster, you can write even more, increasing the coverage of
22-
your package. {vcr} works with {crul}, {httr} and {httr2}.
11+
{vcr} records and replays HTTP requests so you can test your API package with speed and confidence. It makes your tests independent of your internet connection (so they work on CRAN!) and because your tests get much much faster, you can write even more, increasing the coverage of your package. {vcr} works with {crul}, {httr} and {httr2}.
2312

24-
{vcr} draws inspiration from Rubys [vcr](https://github.com/vcr/vcr).
13+
{vcr} draws inspiration from Ruby's [vcr](https://github.com/vcr/vcr).
2514

2615
## Installation
2716

17+
2818
``` r
2919
# Install the latest released version from CRAN
3020
install.packages("vcr")
@@ -43,11 +33,8 @@ pak::pak("ropensci/vcr")
4333

4434
## Usage
4535

46-
Using vcr in a test is straightforward: just call
47-
`vcr::local_cassette()`. The first time your test is run, vcr will
48-
automatically record every HTTP request, saving the request and reponse
49-
in `tests/testthat/_vcr`. After that, it will replay those recorded
50-
requests, meaning that your test no longer needs an active connection.
36+
Using vcr in a test is straightforward: just call `vcr::local_cassette()`. The first time your test is run, vcr will automatically record every HTTP request, saving the request and reponse in `tests/testthat/_vcr`. After that, it will replay those recorded requests, meaning that your test no longer needs an active connection.
37+
5138

5239
``` r
5340
test_that("can retrieve current version", {
@@ -56,12 +43,9 @@ test_that("can retrieve current version", {
5643
})
5744
```
5845

59-
The first argument to `local_cassette()` is the cassette name: it’s used
60-
to name the cassette file so needs to be unique across tests. In this
61-
case, running the above test will generate
62-
`tests/testthat/_vcr/rl_version.yaml` which looks something like this:
46+
The first argument to `local_cassette()` is the cassette name: it's used to name the cassette file so needs to be unique across tests. In this case, running the above test will generate `tests/testthat/_vcr/rl_version.yaml` which looks something like this:
6347

64-
``` yaml
48+
```yaml
6549
http_interactions:
6650
- request:
6751
method: GET
@@ -80,26 +64,15 @@ http_interactions:
8064
recorded_with: VCR-vcr/2.0.0
8165
```
8266
83-
If you look carefully at this file, you’ll notice an `Authorization`
84-
header is not recorded in the request headers despite it being used in
85-
the actual HTTP request. Read more about protecting secrets in the
86-
vignette `vignette("secrets")`.
67+
If you look carefully at this file, you'll notice an `Authorization` header is not recorded in the request headers despite it being used in the actual HTTP request. Read more about protecting secrets in the vignette `vignette("secrets")`.
8768

8869
## Learn more
8970

90-
Start with `vignette("vcr")` to learn more about how {vcr} works,
91-
especially how requests are matched to the recordeded cassette. You
92-
might also enjoy the [HTTP
93-
testing](https://books.ropensci.org/http-testing/) book for a lot more
94-
details about {vcr}, {webmockr}, {curl} and more.
71+
Start with `vignette("vcr")` to learn more about how {vcr} works, especially how requests are matched to the recordeded cassette. You might also enjoy the [HTTP testing](https://books.ropensci.org/http-testing/) book for a lot more details about {vcr}, {webmockr}, {curl} and more.
9572

9673
## Meta
9774

98-
- Please [report any issues or
99-
bugs](https://github.com/ropensci/vcr/issues)
100-
- License: MIT
101-
- Get citation information for `vcr` in R doing
102-
`citation(package = 'vcr')`
103-
- Please note that this package is released with a [Contributor Code of
104-
Conduct](https://ropensci.org/code-of-conduct/). By contributing to
105-
this project, you agree to abide by its terms.
75+
* Please [report any issues or bugs](https://github.com/ropensci/vcr/issues)
76+
* License: MIT
77+
* Get citation information for `vcr` in R doing `citation(package = 'vcr')`
78+
* Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.

0 commit comments

Comments
 (0)