Running 'random.R' [1s]
  Running 'rconfig.R' [155s]
Running the tests in 'tests/rconfig.R' failed.
Complete output:
  > options("rconfig.debug"=TRUE)
  > 
  > cfile <- function(file) {
  +     system.file("examples", file, package = "rconfig")
  + }
  > 
  > str(rconfig::rconfig())
   list()
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(list = list(a = 1)))
  List of 1
   $ a: num 1
   - attr(*, "trace")=List of 2
    ..$ kind : chr "list"
    ..$ value: chr "list(a = 1)"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > 
  > ## yaml file
  > str(rconfig::rconfig(file = cfile("rconfig.yml")))
  List of 5
   $ trials     : int 5
   $ dataset    : chr "demo-data.csv"
   $ cores      : int 1
   $ user       :List of 1
    ..$ name: chr "demo"
   $ description: chr "This is a multi line\ndescription."
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.yml"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = cfile("rconfig-prod.yml")))
  List of 3
   $ trials : int 30
   $ dataset: chr "full-data.csv"
   $ user   :List of 1
    ..$ name: chr "real_We4$#z*="
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.yml"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = c(
  +     cfile("rconfig.yml"),
  +     cfile("rconfig-prod.yml"))))
  List of 5
   $ trials     : int 30
   $ dataset    : chr "full-data.csv"
   $ cores      : int 1
   $ user       :List of 1
    ..$ name: chr "real_We4$#z*="
   $ description: chr "This is a multi line\ndescription."
   - attr(*, "trace")=List of 2
    ..$ kind : chr "merged"
    ..$ value:List of 2
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.yml"
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.yml"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > 
  > str(rconfig::rconfig(file = c(
  +     cfile("rconfig.yml"),
  +     cfile("rconfig-prod.yml")),
  +     list = list(user = list(name = "Jack"))))
  List of 5
   $ trials     : int 30
   $ dataset    : chr "full-data.csv"
   $ cores      : int 1
   $ user       :List of 1
    ..$ name: chr "Jack"
   $ description: chr "This is a multi line\ndescription."
   - attr(*, "trace")=List of 2
    ..$ kind : chr "merged"
    ..$ value:List of 3
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.yml"
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.yml"
    .. ..$ :List of 2
    .. .. ..$ kind : chr "list"
    .. .. ..$ value: chr "list(user = list(name = \"Jack\"))"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > 
  > ## json file
  > str(rconfig::rconfig(file = cfile("rconfig.json")))
  List of 4
   $ trials : int 5
   $ dataset: chr "demo-data.csv"
   $ cores  : int 1
   $ user   :List of 1
    ..$ name: chr "demo"
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.json"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = cfile("rconfig-prod.json")))
  List of 3
   $ trials : int 30
   $ dataset: chr "full-data.csv"
   $ user   :List of 1
    ..$ name: chr "real_We4$#z*="
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.json"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = c(
  +     cfile("rconfig.json"),
  +     cfile("rconfig-prod.json"))))
  List of 4
   $ trials : int 30
   $ dataset: chr "full-data.csv"
   $ cores  : int 1
   $ user   :List of 1
    ..$ name: chr "real_We4$#z*="
   - attr(*, "trace")=List of 2
    ..$ kind : chr "merged"
    ..$ value:List of 2
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.json"
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.json"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > 
  > ## text file
  > str(rconfig::rconfig(file = cfile("rconfig.txt")))
  List of 4
   $ trials : int 5
   $ dataset: chr "demo-data.csv"
   $ cores  : int 1
   $ user   :List of 1
    ..$ name: chr "demo"
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.txt"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = cfile("rconfig-prod.txt")))
  List of 3
   $ trials : int 30
   $ dataset: chr "full-data.csv"
   $ user   :List of 1
    ..$ name: chr "real_We4$#z*="
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.txt"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = c(
  +     cfile("rconfig.txt"),
  +     cfile("rconfig-prod.txt"))))
  List of 4
   $ trials : int 30
   $ dataset: chr "full-data.csv"
   $ cores  : int 1
   $ user   :List of 1
    ..$ name: chr "real_We4$#z*="
   - attr(*, "trace")=List of 2
    ..$ kind : chr "merged"
    ..$ value:List of 2
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.txt"
    .. ..$ :List of 2
    .. .. ..$ kind : chr "file"
    .. .. ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.txt"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > 
  > ## check evaluating expressions
  > options("rconfig.eval"=FALSE)
  > str(rconfig::rconfig(file = cfile("rconfig.yml")))
  List of 5
   $ trials     : int 5
   $ dataset    : chr "demo-data.csv"
   $ cores      : chr "!expr getOption(\"mc.cores\", 1L)"
   $ user       :List of 1
    ..$ name: chr "demo"
   $ description: chr "This is a multi line\ndescription."
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.yml"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = cfile("rconfig.json")))
  List of 4
   $ trials : int 5
   $ dataset: chr "demo-data.csv"
   $ cores  : chr "!expr getOption(\"mc.cores\", 1L)"
   $ user   :List of 1
    ..$ name: chr "demo"
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.json"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > options("rconfig.eval"=NULL)
  > str(rconfig::rconfig(file = cfile("rconfig.yml")))
  List of 5
   $ trials     : int 5
   $ dataset    : chr "demo-data.csv"
   $ cores      : int 1
   $ user       :List of 1
    ..$ name: chr "demo"
   $ description: chr "This is a multi line\ndescription."
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.yml"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > str(rconfig::rconfig(file = cfile("rconfig.json")))
  List of 4
   $ trials : int 5
   $ dataset: chr "demo-data.csv"
   $ cores  : int 1
   $ user   :List of 1
    ..$ name: chr "demo"
   - attr(*, "trace")=List of 2
    ..$ kind : chr "file"
    ..$ value: chr "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.json"
   - attr(*, "command")= chr(0) 
   - attr(*, "class")= chr "rconfig"
  > 
  > ## flatten
  > rconfig::rconfig(
  +     file = c(cfile("rconfig.json"),
  +              cfile("rconfig-prod.txt")),
  +     list = list(user = list(name = "Jack")),
  +     flatten = TRUE)
  $trials
  [1] 30
  
  $dataset
  [1] "full-data.csv"
  
  $cores
  [1] 1
  
  $user.name
  [1] "Jack"
  
  attr(,"trace")
  attr(,"trace")$kind
  [1] "merged"
  
  attr(,"trace")$value
  attr(,"trace")$value[[1]]
  attr(,"trace")$value[[1]]$kind
  [1] "file"
  
  attr(,"trace")$value[[1]]$value
  [1] "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig.json"
  
  
  attr(,"trace")$value[[2]]
  attr(,"trace")$value[[2]]$kind
  [1] "file"
  
  attr(,"trace")$value[[2]]$value
  [1] "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-prod.txt"
  
  
  attr(,"trace")$value[[3]]
  attr(,"trace")$value[[3]]$kind
  [1] "list"
  
  attr(,"trace")$value[[3]]$value
  [1] "list(user = list(name = \"Jack\"))"
  
  
  
  attr(,"command")
  character(0)
  attr(,"class")
  [1] "rconfig"
  > 
  > ## substitution
  > Sys.setenv(USER="Adele")
  > Sys.setenv(ACCESS="admin")
  > Type <- "simple"
  > Lang <- "HU"
  > rconfig::rconfig(file = cfile("rconfig-sub.yml"))
  $trials
  [1] 30
  
  $`this-is-null`
  [1] ""
  
  $env
  $env$dataset
  [1] "full-data.csv"
  
  $env$url
  [1] "https://www.example.com"
  
  $env$user
  $env$user$name
  [1] "Adele"
  
  $env$user$access
  [1] "admin"
  
  
  
  $conf
  $conf$path
  [1] "https://www.example.com/api/v1/"
  
  $conf$text
  [1] "User: Adele (admin)"
  
  $conf$lang
  [1] "HU"
  
  
  $renv
  $renv$lang
  [1] "HU"
  
  $renv$type
  [1] "simple"
  
  
  attr(,"trace")
  attr(,"trace")$kind
  [1] "file"
  
  attr(,"trace")$value
  [1] "D:\\RCompile\\CRANpkg\\lib\\4.4\\rconfig\\examples\\rconfig-sub.yml"
  
  attr(,"command")
  character(0)
  attr(,"class")
  [1] "rconfig"
  > 
  > proc.time()
     user  system elapsed 
     0.34    0.15    0.48