package_ext: Get file extension of package archive

Description Usage Arguments Value

View source: R/utils.R

Description

Get the file extension of a package archive if it is valid (tar.gz, tgz or zip). An error is thrown if the extension is not valid.

Usage

1
package_ext(archive_file)

Arguments

archive_file

Path to a package archive.

Value

The file extension.


robertdj/pkg.peek documentation built on Aug. 30, 2021, 5:42 p.m.