polkas
polkas

Reputation: 4184

R CRAN submission - URLs check

I can not find how to replicate the internal CRAN test for the URLs healthy. It is important that this test is run only on the Debian winbuilder (yes, debian under winbuilder). As this test is not run on the Windows machine so we could NOT use the https://win-builder.r-project.org/upload.aspx website service to replicate it.

The example error message from the CRAN server, as the website was moved. Such message is producing the NOTE so the package is not automatically processed.

Found the following (possibly) invalid URLs:
  URL: http://blog.obeautifulcode.com/R/How-R-Searches-And-Finds-Stuff/
    From: inst/doc/tinyverse.html
    Status: Error
    Message: Could not resolve host: blog.obeautifulcode.com

Edit:

There is a useful source with CRAN policy in this area https://cran.r-project.org/web/packages/URL_checks.html

Upvotes: 0

Views: 203

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368499

(Promoting comment to answer as suggested...)

The test code has been pulled out of R itself and made into a package you can install. Other than that it is of course part of any (recent enough) R or R-devel build.

FWIW I also wrapped this into a convenience script I call all the time on my systems.

Upvotes: 2

Related Questions