Skip to content

check_url function for validating link #4

@christophergandrud

Description

@christophergandrud

Pseudocode for new util check_url to validate URLs in R package documentation.

check_urls <- function(path = ".", base_url)

# if pkg - man docs README

# if not check path

# list.files
# file_ext

# if HTML -- what we already have

# If not grepl("^http.*://", file) to find links

# check links

# return data frame: file_name, broken_link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions