Learn R Programming

One4All (version 0.5)

check_exists_in_zip: Check if a file exists in a zip file

Description

This function checks if a file with a given name exists in a specified zip file.

Usage

check_exists_in_zip(zip_path, file_name)

Value

A logical value indicating whether the file exists in the zip file (TRUE) or not (FALSE).

Arguments

zip_path

A character string representing the path of the zip file.

file_name

A character string representing the name of the file to check.

Examples

Run this code
if (FALSE) {
check_exists_in_zip(zip_path = "/path/to/your.zip", file_name = "file/in/zip.csv")
}

Run the code above in your browser using DataLab