Skip to contents

This function creates a data frame that maps local license file names to their corresponding remote license URLs. The local file names are generated by converting the license names to lowercase, replacing spaces and hyphens with underscores, and appending the .md extension. The remote file URLs are taken directly from the input license vector.

Usage

license_local_remote(license)

Arguments

license

A named character vector where the names are the license names and the values are the corresponding remote license URLs.

Value

A data frame with two columns: local_file and remote_file. The local_file column contains the generated local file names, and the remote_file column contains the corresponding remote license URLs.