handshakeFile: Test an input file for read access and type. Prompt if...

View source: R/handshakeFile.R

handshakeFileR Documentation

Test an input file for read access and type. Prompt if issues.

Description

When supplied a filepath, will test that the file is readable and is of the correct filetype. If either readability or file type is invalid, will prompt for user selection of correct filepath via computer window.

Usage

handshakeFile(path, tool)

Arguments

path

Filepath to test and use.

tool

What type of tool is the submission file? Options include "Data Pack", "Data Pack Template", and "OPU Data Pack Template".

Value

Character vector containing valid filepath for further use.


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.