diff --git a/R/coverage.R b/R/coverage.R index 2406cd8bd..6a6332513 100644 --- a/R/coverage.R +++ b/R/coverage.R @@ -44,7 +44,7 @@ use_covr_ignore <- function(files) { } use_codecov_badge <- function(repo_spec) { - url <- glue("https://codecov.io/gh/{repo_spec}") + url <- glue("https://app.codecov.io/gh/{repo_spec}") img <- glue("https://codecov.io/gh/{repo_spec}/graph/badge.svg") use_badge("Codecov test coverage", url, img) } diff --git a/README.Rmd b/README.Rmd index ed3b4ac0a..e033dc312 100644 --- a/README.Rmd +++ b/README.Rmd @@ -20,7 +20,7 @@ knitr::opts_chunk$set( [![CRAN status](https://www.r-pkg.org/badges/version/usethis)](https://CRAN.R-project.org/package=usethis) [![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable) [![.github/workflows/R-CMD-check](https://github.com/r-lib/usethis/actions/workflows/.github/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/usethis/actions/workflows/.github/workflows/R-CMD-check.yaml) -[![Codecov test coverage](https://codecov.io/gh/r-lib/usethis/graph/badge.svg)](https://codecov.io/gh/r-lib/usethis) +[![Codecov test coverage](https://codecov.io/gh/r-lib/usethis/graph/badge.svg)](https://app.codecov.io/gh/r-lib/usethis) usethis is a workflow package: it automates repetitive tasks that arise during project setup and development, both for R packages and non-package projects. diff --git a/README.md b/README.md index b865cb055..f78de71dd 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ status](https://www.r-pkg.org/badges/version/usethis)](https://CRAN.R-project.or stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable) [![.github/workflows/R-CMD-check](https://github.com/r-lib/usethis/actions/workflows/.github/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/usethis/actions/workflows/.github/workflows/R-CMD-check.yaml) [![Codecov test -coverage](https://codecov.io/gh/r-lib/usethis/graph/badge.svg)](https://codecov.io/gh/r-lib/usethis) +coverage](https://codecov.io/gh/r-lib/usethis/graph/badge.svg)](https://app.codecov.io/gh/r-lib/usethis) usethis is a workflow package: it automates repetitive tasks that arise @@ -61,8 +61,8 @@ library(usethis) # Create a new package ------------------------------------------------- path <- file.path(tempdir(), "mypkg") create_package(path) -#> ✔ Creating '/tmp/RtmpMuqeSm/mypkg/'. -#> ✔ Setting active project to "/private/tmp/RtmpMuqeSm/mypkg". +#> ✔ Creating '/tmp/Rtmpyt1hd6/mypkg/'. +#> ✔ Setting active project to "/private/tmp/Rtmpyt1hd6/mypkg". #> ✔ Creating 'R/'. #> ✔ Writing 'DESCRIPTION'. #> Package: mypkg @@ -75,13 +75,13 @@ create_package(path) #> license #> Encoding: UTF-8 #> Roxygen: list(markdown = TRUE) -#> RoxygenNote: 7.3.1 +#> RoxygenNote: 7.3.2 #> ✔ Writing 'NAMESPACE'. #> ✔ Setting active project to "". # only needed since this session isn't interactive proj_activate(path) -#> ✔ Setting active project to "/private/tmp/RtmpMuqeSm/mypkg". -#> ✔ Changing working directory to '/tmp/RtmpMuqeSm/mypkg/' +#> ✔ Setting active project to "/private/tmp/Rtmpyt1hd6/mypkg". +#> ✔ Changing working directory to '/tmp/Rtmpyt1hd6/mypkg/' # Modify the description ---------------------------------------------- use_mit_license("My Name") diff --git a/tests/testthat/_snaps/coverage.md b/tests/testthat/_snaps/coverage.md index c849622be..df963ad75 100644 --- a/tests/testthat/_snaps/coverage.md +++ b/tests/testthat/_snaps/coverage.md @@ -8,6 +8,6 @@ i Badge link will only be printed to screen. [ ] Copy and paste the following lines into 'README': - [![Codecov test coverage](https://codecov.io/gh/OWNER/REPO/graph/badge.svg)](https://codecov.io/gh/OWNER/REPO) + [![Codecov test coverage](https://codecov.io/gh/OWNER/REPO/graph/badge.svg)](https://app.codecov.io/gh/OWNER/REPO)