check.file.args: File argument validator

Description Usage Arguments Author(s) Examples

View source: R/metaseqr.argcheck.R

Description

Checks if a file exists for specific arguments requiring a file input. Internal use only.

Usage

1
    check.file.args(arg.name, arg.value)

Arguments

arg.name

argument name to display in a possible error.

arg.value

the filename to check.

Author(s)

Panagiotis Moulos

Examples

1
2
3
4
5
6
# OK
check.file.args("file",system.file("metaseqr_report.html",
    package="metaseqR"))
## Error!
#check.file.args("file",system.file("metaseqr_report.htm",
#    package="metaseqR"))

pmoulos/metaseqr documentation built on Dec. 29, 2020, 5:56 a.m.