Learn R Programming

fritools (version 4.6.0)

is_path: Check Whether an Object Contains a Valid File System Path

Description

Check Whether an Object Contains a Valid File System Path

Usage

is_path(x)

Value

TRUE on success, FALSE otherwise.

Arguments

x

The object.

See Also

Other file utilities: clipboard_path(), delete_trailing_blank_lines(), delete_trailing_whitespace(), develop_test(), file_copy(), file_modified_last(), file_save(), file_string(), find_files(), get_lines_between_tags(), get_mtime(), get_unique_string(), grep_file(), is_files_current(), paths, runsed(), search_files(), split_code_file(), touch()

Examples

Run this code
is_path(tempdir())
path <- tempfile()
is_path(path)
touch(path)
is_path(path)

Run the code above in your browser using DataLab