Title: | Run CRAN URL Checks from Older R Versions |
---|---|
Description: | Provide the URL checking tools available in R 4.1+ as a package for earlier versions of R. Also uses concurrent requests so can be much faster than the serial versions. |
Authors: | R Core team [aut] (The code in urltools.R adapted from the tools package), Jim Hester [aut] , Gábor Csárdi [aut, cre], Posit Software, PBC [cph, fnd] |
Maintainer: | Gábor Csárdi <[email protected]> |
License: | GPL-3 |
Version: | 1.0.1.9000 |
Built: | 2024-12-03 04:41:33 UTC |
Source: | https://github.com/r-lib/urlchecker |
Runs the url_db_from_package_source
function in the tools package along
with a function to check URLs in un-rendered Rmarkdown vignettes.
url_check( path = ".", db = NULL, parallel = TRUE, pool = curl::new_pool(), progress = TRUE )
url_check( path = ".", db = NULL, parallel = TRUE, pool = curl::new_pool(), progress = TRUE )
path |
Path to the package |
db |
A url database |
parallel |
If |
pool |
A multi handle created by |
progress |
Whether to show the progress bar for parallel checks |
A url_checker_db
object (invisibly). This is a check_url_db
object
with an added class with a custom print method.
## Not run: url_check("my_pkg") ## End(Not run)
## Not run: url_check("my_pkg") ## End(Not run)
First uses url_check to check and then updates any URLs which are permanent (301) redirects.
url_update(path = ".", results = url_check(path))
url_update(path = ".", results = url_check(path))
path |
Path to the package |
results |
results from url_check. |
The results from url_check(path)
, invisibly.
## Not run: url_update("my_pkg") ## End(Not run)
## Not run: url_update("my_pkg") ## End(Not run)