https://github.com/r-lib/urlchecker
Run CRAN URL checks from older versions of R
https://github.com/r-lib/urlchecker
Last synced: 8 days ago
JSON representation
Run CRAN URL checks from older versions of R
- Host: GitHub
- URL: https://github.com/r-lib/urlchecker
- Owner: r-lib
- License: gpl-3.0
- Created: 2020-10-02T13:26:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T15:59:38.000Z (8 months ago)
- Last Synced: 2025-03-30T08:11:15.541Z (16 days ago)
- Language: R
- Homepage: https://urlchecker.r-lib.org/
- Size: 2.12 MB
- Stars: 46
- Watchers: 2
- Forks: 4
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - r-lib/urlchecker - Run CRAN URL checks from older versions of R (R)
README
# urlchecker
[](https://github.com/r-lib/urlchecker/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/r-lib/urlchecker?branch=main)The goal of urlchecker is to run the URL checks from R 4.1 in older versions of R and automatically update URLs as needed.
It also uses concurrent requests, so is generally much faster than the URL checks from the tools package.
## Installation
Install the released version from CRAN
```r
install.packages("urlchecker")
```Or the development version from GitHub:
```r
# install.packages("pak")
pak::pak("r-lib/urlchecker")
```## Usage
``` r
library(urlchecker)# `url_check()` will check all URLs in a package, as is done by CRAN when
# submitting a package.
url_check("path/to/pkg")# `url_update()` will check all URLs in a package, then update any 301
# redirects automatically to their new location.
url_update("path/to/pkg")
```## Code of Conduct
Please note that the urlchecker project is released with a
[Contributor Code of Conduct](https://r-lib.github.io/urlchecker/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.