give_ext: Ensure a file name has the intended extension.

give_extR Documentation

Ensure a file name has the intended extension.

Description

See strex::str_give_ext().

Usage

give_ext(string, ext, replace = FALSE)

str_give_ext(string, ext, replace = FALSE)

Arguments

string

The intended file name.

ext

The intended file extension (with or without the ".").

replace

If the file has an extension already, replace it (or append the new extension name)?


filesstrings documentation built on Feb. 16, 2023, 7:25 p.m.