Test if a path or handle is a 'dummy' whose only purpose is to allow tests to run.

Share:

Description

When any of the functions in the package are called, if this returns 'true' on their first argument, no actual Simile interaction will be attempted but some sample output may be returned.

Usage

1
is.dummy(path.or.handle)

Arguments

path.or.handle

The file path or handle which is being tested for dummy-ness.

Value

A boolean which is true in the case of a dummy argument.

Author(s)

Jasper Taylor

Examples

1
2
3
4
is.dummy("dummy.dll")
# [1] TRUE
is.dummy("~/.simile/Examples/spiro.so")
# [1] FALSE