Description Usage Arguments Value See Also Examples
Function to check wheather file is INI format
1 2 3 4 5 | is.ini.file(
file = Sys.getenv("R_CONFIGFILE_ACTIVE", "config.cfg"),
ini.file.debug = FALSE,
...
)
|
file |
File name of configuration file to test. Defaults to the value of the 'R_CONFIGFILE_ACTIVE' environment variable ('config.cfg' if the variable does not exist and JSON/INI/YAML/TOML format only) |
ini.file.debug |
If TRUE, it will show error infomation when read INI config, default is FALSE |
... |
Arguments for |
Logical indicating whether the specified configuration file is INI format
is.json.file
,
is.yaml.file
,
is.toml.file
1 2 3 4 5 6 7 8 | config.json <- system.file('extdata', 'config.json', package='configr')
config.ini <- system.file('extdata', 'config.ini', package='configr')
config.yaml <- system.file('extdata', 'config.yaml', package='configr')
config.toml <- system.file('extdata', 'config.toml', package='configr')
print(is.ini.file(config.ini))
print(is.ini.file(config.json))
print(is.ini.file(config.yaml))
print(is.ini.file(config.toml))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.