Skip to content

use_pkgdown_github_pages() causes warning in urlchecker #1526

@malcolmbarrett

Description

@malcolmbarrett

And on CRAN checks.

I believe it's because the trailing / is removed, as the corrected URL has the trailing /:

site_url <- sub("/$", "", site$html_url)

However, this is a peculiar thing to find in the code, which makes me think it fixes some other problem.

Here's the result from tidysmd

urlchecker::url_check()
#> fetching [ 0 / 8 ]fetching [ 1 / 8 ]fetching [ 2 / 8 ]fetching [ 3 / 8 ]fetching [ 4 / 8 ]fetching [ 5 / 8 ]fetching [ 6 / 8 ]fetching [ 7 / 8 ]                       
#> x Error: README.md:12:56 404: Not Found
#> status](https://www.r-pkg.org/badges/version/tidysmd)](https://CRAN.R-project.org/package=tidysmd)
#>                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#> ! Warning: DESCRIPTION:12:5 Moved
#>     https://malcolmbarrett.github.io/tidysmd
#>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#>     https://malcolmbarrett.github.io/tidysmd/

Created on 2021-10-20 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions