is_file: Is a file?

View source: R/3.2_read_proteingroups.R

is_fileR Documentation

Is a file?

Description

Is a file (and not a dir)

Usage

is_file(file)

Arguments

file

filepath

Details

This function distinguishies between dir and file. Others dont: is.file, fs::file_exists, assertive::is_existing_file

Examples

dir  <- tempdir();  dir.create(dir, showWarnings = FALSE)
file <- tempfile(); invisible(file.create(file))
is_file(dir)
is_file(file)

bhagwataditya/importomics documentation built on Oct. 29, 2024, 3:19 p.m.