Skip to content
Snippets Groups Projects
Unverified Commit 0c5c0475 authored by Todor Kondic's avatar Todor Kondic
Browse files

api.R: read_conf: test for existence of fn_conf

* api.R (read_conf): Add a test.
parent d2a3fed3
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ run <- function(fn_conf) {
}
read_conf <- function(fn_conf) {
assertthat::assert_that(file.exists(fn_conf),msg=paste("Unable to read the configuration file:", fn_conf))
conf <- yaml::yaml.load_file(fn_conf)
conf <- vrfy_conf(conf)
conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment