inputIsCorrect: Check User's input

View source: R/functions.R

inputIsCorrectR Documentation

Check User's input

Description

Check the correctness of the input provided by the User

Usage

inputIsCorrect(listOfInput, data, message = FALSE)

Arguments

listOfInput

A list containing inputted values to check

data

A reactive data.frame with all current values

message

TRUE/FALSE value to choose the function output (TRUE for getting message with instruction to correct the input; FALSE for getting TRUE/FALSE status of input check); FALSE by default

Details

This function checks if the numeric and character input is not empty as well as checks numeric values for being integers.

Value

Returns TRUE if all input is correct, otherwise, returns FALSE. If messages=TRUE the function returns the message to the User with appropriate instruction.

Author(s)

Alina Tselinina tselinina@gmail.com


aqlina/musicBox documentation built on Jan. 20, 2024, 2:29 a.m.