The CRAN submission checks run by R CMD check --as-cran
check
the availability of URLs in files including DESCRIPTION,
CITATION, NEWS.Rd, NEWS.md, README.md, and
the .Rd help pages and HTML files in inst/doc. These
notes explain the checks.
They are only done if the build of R in use supports a suitably recent
version of libcurl
: most should.
\url
markup should only be used for always-active URLs. Examples
of the use of e.g. localhost
should use \samp
markup.
curl -I -L
on the command
line (where curl
is available). They may give different results
from accessing the URL in your browser. Possible reasons include:
405
status value, and such sites are not reported
in the checks. But some are mis-configured, notably
‘http://www.sciencedirect.com’ (which is special-cased in the checks).
libcurl
was compiled to use: on
most systems these are from the OS (by default on Windows those shipped
with the libcurl
binaries are used). Browsers may use the OS
versions, or may use their own copies which can explain discrepancies.
403
and 503
may work in
a browser, although most do not. This has even been seen for status code
404
.
If you find one of the exceptions, explain your findings in the submission.
curlGetHeaders("http://www.mywebsite.org/")
. Where
redirection is permanent you should use the redirected URL (see
RFC 7231).
One common issue is the redirection of http://
URLs to
https://
URLs, or even vice versa.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.