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. 21, 2020, 6:19 a.m.