is_path: path maybe

View source: R/fut.r

is_pathR Documentation

path maybe

Description

test string begins with one o more alphanumeric characters followed by file path separators, or it begins with "./" or ".\" followed by one or more alpanumeric characters; in both cases ending in alphanumeric character.

Usage

is_path(x)

Arguments

x

character

Value

TRUE if x has at least one slash followed by and ended by an alphanumeric character

Examples

## Not run: 
is_path(".aa/bb")
is_path("aa/bb")
is_path("aa/bb.")

## End(Not run)

ecastellon/magfoo documentation built on Jan. 29, 2024, 4:40 p.m.