Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(readsdr)
  > 
  > test_check("readsdr")
  -- 1. Error: arrange_variables() returns variables in computational order (@test
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr:::arrange_variables(variables)
    2. base::data.frame(stringsAsFactors = FALSE, equation = equations)
    9. dplyr::group_by(., equation)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: arrange_variables() works when there are duplicated equations (@tes
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr:::arrange_variables(variables)
    2. base::data.frame(stringsAsFactors = FALSE, equation = equations)
    9. dplyr::group_by(., equation)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: create_stan_function() returns the expected string (@test-create_st
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "lotka_volterra")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: create_stan_function() returns a string (@test-create_stan_function
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "test_model")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: create_stan_function() assign the expected name to the function (@t
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "lotka_volterra")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 6. Error: create_stan_function() declares the exact number of stocks (@test-c
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "lotka_volterra")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 7. Error: create_stan_function() declares the expected variables (@test-creat
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "lotka_volterra")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 8. Error: create_stan_function() generates the expected auxiliar equations (@
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "lotka_volterra")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 9. Error: create_stan_function() generates the expected differential equation
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(lv, "lotka_volterra")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 10. Error: create_stan_function() parameterise the function (@test-create_sta
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(...)
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 11. Failure: create_stan_function() throws an error when the parameter does n
  `create_stan_function(lv, "lotka_volterra", pars = "wrong_par")` threw an error with unexpected message.
  Expected match: "'wrong_par' not found"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. readsdr::create_stan_function(lv, "lotka_volterra", pars = "wrong_par")
    7. readsdr:::extract_structure_from_XMILE(filepath)
    4. vars_and_consts$variables
   12. readsdr:::arrange_variables(.)
    6. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   13. dplyr::group_by(., equation)
   25. base::getExportedValue(pkg, name)
   26. base::asNamespace(ns)
   27. base::getNamespace(ns)
   28. base::loadNamespace(name)
   29. base::library.dynam(lib, package, package.lib)
  
  -- 12. Error: create_stan_function() returns equations in computational  order (
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(test_model, "test_model")
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 13. Error: create_stan_function() allows user to override constant values (@t
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::create_stan_function(...)
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 14. Error: get_deSolve_elems() returns the basic elements (@test-generate_deS
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_named(...)
    4. readsdr:::get_deSolve_elems(structure_m1)
    5. readsdr:::generate_model_func(variables, levels, constants, there_are_gf)
    6. readsdr:::arrange_variables(variables)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   15. base::getExportedValue(pkg, name)
   16. base::asNamespace(ns)
   17. base::getNamespace(ns)
   18. base::loadNamespace(name)
   19. base::library.dynam(lib, package, package.lib)
  
  -- 15. Error: get_deSolve_elems() returns the graph_fun element (@test-generate_
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_named(...)
    4. readsdr:::get_deSolve_elems(structure_m2)
    5. readsdr:::generate_model_func(variables, levels, constants, there_are_gf)
    6. readsdr:::arrange_variables(variables)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   15. base::getExportedValue(pkg, name)
   16. base::asNamespace(ns)
   17. base::getNamespace(ns)
   18. base::loadNamespace(name)
   19. base::library.dynam(lib, package, package.lib)
  
  -- 16. Error: generate_model_func() returns the expected fun (@test-generate_deS
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr:::generate_model_func(...)
    2. readsdr:::arrange_variables(variables)
    3. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   10. dplyr::group_by(., equation)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::library.dynam(lib, package, package.lib)
  
  -- 17. Error: generate_model_func() works for models with graphical functions (@
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr:::generate_model_func(...)
    2. readsdr:::arrange_variables(variables)
    3. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   10. dplyr::group_by(., equation)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::library.dynam(lib, package, package.lib)
  
  -- 18. Error: get_igraph_inputs() returns the expected elements (@test-generate_
  `map_df()` requires dplyr
  Backtrace:
   1. testthat::expect_named(...)
   4. readsdr:::get_igraph_inputs(structure_m1)
   5. readsdr:::generate_nodes_df(levels, variables, constants)
   6. purrr::map_df(...)
  
  -- 19. Error: get_igraph_inputs() valid inputs for igraph (@test-generate_igraph
  `map_df()` requires dplyr
  Backtrace:
   1. readsdr:::get_igraph_inputs(structure_m1)
   2. readsdr:::generate_nodes_df(levels, variables, constants)
   3. purrr::map_df(...)
  
  -- 20. Error: generate_edges_df() returns the correct number of edges (@test-gen
  `map_df()` requires dplyr
  Backtrace:
   1. base::with(...)
   2. base::with.default(...)
   3. [ base::eval(...) ] with 1 more call
   5. readsdr:::generate_edges_df(levels, variables, constants)
   6. purrr::map_df(stocks, construct_stock_edge)
  
  -- 21. Error: generate_edges_df() returns the correct number of flows (@test-gen
  `map_df()` requires dplyr
  Backtrace:
   1. base::with(...)
   2. base::with.default(...)
   3. [ base::eval(...) ] with 1 more call
   5. readsdr:::generate_edges_df(levels, variables, constants)
   6. purrr::map_df(stocks, construct_stock_edge)
  
  -- 22. Error: generate_edges_df() ignores info-links whose tail is a constant (@
  `map_df()` requires dplyr
  Backtrace:
   1. readsdr:::generate_edges_df(stocks, variables, constants)
   2. purrr::map_df(stocks, construct_stock_edge)
  
  -- 23. Error: generate_nodes_df() returns a df with the correct columns (@test-g
  `map_df()` requires dplyr
  Backtrace:
   1. base::with(...)
   2. base::with.default(...)
   3. [ base::eval(...) ] with 1 more call
   5. readsdr:::generate_nodes_df(levels, variables, constants)
   6. purrr::map_df(...)
  
  -- 24. Error: generate_nodes_df() returns the correct number of nodes (@test-gen
  `map_df()` requires dplyr
  Backtrace:
   1. base::with(...)
   2. base::with.default(...)
   3. [ base::eval(...) ] with 1 more call
   5. readsdr:::generate_nodes_df(levels, variables, constants)
   6. purrr::map_df(...)
  
  -- 25. Error: generate_nodes_df() replaces auxiliar consts with their value in e
  `map_df()` requires dplyr
  Backtrace:
   1. readsdr:::generate_nodes_df(stocks2, variables2, constants2)
   2. purrr::map_df(...)
  
  -- 26. Failure: generate_nodes_df() throws an error should a variable directly
  d
  `generate_nodes_df(structure_m1$levels, variables, structure_m1$constants)` threw an error with unexpected message.
  Expected match: "A variable depends on time"
  Actual message: "`map_df()` requires dplyr"
  Backtrace:
   1. testthat::expect_error(...)
   6. readsdr:::generate_nodes_df(structure_m1$levels, variables, structure_m1$constants)
   7. purrr::map_df(...)
  
  -- 27. Error: the output from read_xmile() is a list (@test-read_xmile.R#30)  --
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_is(read_xmile(test_model), "list")
    4. readsdr::read_xmile(test_model)
    5. readsdr:::extract_structure_from_XMILE(filepath)
    4. vars_and_consts$variables
   12. readsdr:::arrange_variables(.)
    6. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   13. dplyr::group_by(., equation)
   23. base::getExportedValue(pkg, name)
   24. base::asNamespace(ns)
   25. base::getNamespace(ns)
   26. base::loadNamespace(name)
   27. base::library.dynam(lib, package, package.lib)
  
  -- 28. Error: the output from read_xmile() produces the required elements (@test
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_named(...)
    4. readsdr::read_xmile(test_model)
    5. readsdr:::extract_structure_from_XMILE(filepath)
    4. vars_and_consts$variables
   12. readsdr:::arrange_variables(.)
    6. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   13. dplyr::group_by(., equation)
   23. base::getExportedValue(pkg, name)
   24. base::asNamespace(ns)
   25. base::getNamespace(ns)
   26. base::loadNamespace(name)
   27. base::library.dynam(lib, package, package.lib)
  
  -- 29. Error: read_xmile() returns a runnable model (@test-read_xmile.R#55)  ---
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::read_xmile(test_model)
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 30. Error: read_xmile() produces a model function that returns all levels, va
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. readsdr::read_xmile(test_model)
    2. readsdr:::extract_structure_from_XMILE(filepath)
    3. vars_and_consts$variables
   11. readsdr:::arrange_variables(.)
    5. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   12. dplyr::group_by(., equation)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 31. Error: read_xmile() works for a model that has a NOT statement
  from Stell
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. base::suppressWarnings(read_xmile(test_model))
    3. readsdr::read_xmile(test_model)
    4. readsdr:::extract_structure_from_XMILE(filepath)
    4. vars_and_consts$variables
   12. readsdr:::arrange_variables(.)
    6. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   13. dplyr::group_by(., equation)
   22. base::getExportedValue(pkg, name)
   23. base::asNamespace(ns)
   24. base::getNamespace(ns)
   25. base::loadNamespace(name)
   26. base::library.dynam(lib, package, package.lib)
  
  -- 32. Error: xmile_to_deSolve() returns a list (@test-read_xmile.R#104)  ------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_is(xmile_to_deSolve(test_model), "list")
    4. readsdr::xmile_to_deSolve(test_model)
    5. readsdr:::extract_structure_from_XMILE(filepath)
    4. vars_and_consts$variables
   12. readsdr:::arrange_variables(.)
    6. base::data.frame(stringsAsFactors = FALSE, equation = equations)
   13. dplyr::group_by(., equation)
   23. base::getExportedValue(pkg, name)
   24. base::asNamespace(ns)
   25. base::getNamespace(ns)
   26. base::loadNamespace(name)
   27. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 150 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 32 ]
  1. Error: arrange_variables() returns variables in computational order (@test-arrange_variables.R#10) 
  2. Error: arrange_variables() works when there are duplicated equations (@test-arrange_variables.R#26) 
  3. Error: create_stan_function() returns the expected string (@test-create_stan_function.R#107) 
  4. Error: create_stan_function() returns a string (@test-create_stan_function.R#112) 
  5. Error: create_stan_function() assign the expected name to the function (@test-create_stan_function.R#117) 
  6. Error: create_stan_function() declares the exact number of stocks (@test-create_stan_function.R#124) 
  7. Error: create_stan_function() declares the expected variables (@test-create_stan_function.R#131) 
  8. Error: create_stan_function() generates the expected auxiliar equations (@test-create_stan_function.R#147) 
  9. Error: create_stan_function() generates the expected differential equations (@test-create_stan_function.R#164) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted