Running ‘manualtests.R’ [0s/0s]
  Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(golem)
  > 
  > test_check("golem")
  ── Created ─────────────────────────────────────────────────────────────────────
  ● Couldn't find golem working directory
  ✔ Definining golem working directory as `.`
  You can change golem working directory with set_golem_wd('path/to/wd')
  ✔ Definining golem working directory as `/tmp/RtmpA4Bon5/txpypxmflv`
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/style.css
  ● To link to this file,  go to the `golem_add_external_resources()` function in `app_ui.R` and add `tags$link(rel="stylesheet", type="text/css", href="www/style.css")`
  ● Go to /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/style.css
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/style.css
  ● To link to this file,  go to the `golem_add_external_resources()` function in `app_ui.R` and add `tags$link(rel="stylesheet", type="text/css", href="www/style.css")`
  ● Go to /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/style.css
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/script.js
  ● To link to this file, go to the `golem_add_external_resources()` function in `app_ui.R` and add `tags$script(src="www/script.js")`
  ● Go to /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/script.js
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/script.js
  ● To link to this file, go to the `golem_add_external_resources()` function in `app_ui.R` and add `tags$script(src="www/script.js")`
  ● Go to /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/script.js
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/handler.js
  ● To link to this file,  go to the `golem_add_external_resources()` function in `app_ui.R` and add `tags$script(src="www/handler.js")`
  ● Go to /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/handler.js
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/handler.js
  ● To link to this file,  go to the `golem_add_external_resources()` function in `app_ui.R` and add `tags$script(src="www/handler.js")`
  ● Go to /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/handler.js
  ✔ ui file created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/ui.R
  ✔ server file created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/server.R
  ✔ ui file created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/ui.R
  ✔ server file created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/uskduizwud/server.R
  ── 1. Failure: add_ui_server_files (@test-add_function.R#62)  ──────────────────
  tools::file_ext(script) not equal to "R".
  Lengths differ: 2 is not 1
  
  ✔ File created at R/mod_test.R
  ◼ Go to R/mod_test.R
  [1] "test"
  [1] "test"
  [1] "test"
  [1] "test"
  ✔ favicon.ico created at /tmp/RtmpA4Bon5/txpypxmflv/inst/app/www/favicon.ico
  ── Change / Add in the app_ui function ─────────────────────────────────────────
  golem::favicon("www/favicon.ico")
  
  ✔ Removing favicon at inst/app/www/favicon.ico
  ✔ Adding 'DT' to Imports field in DESCRIPTION
  ● Refer to functions with `DT::fun()`
  ✔ Adding 'attempt' to Imports field in DESCRIPTION
  ● Refer to functions with `attempt::fun()`
  ✔ Adding 'glue' to Imports field in DESCRIPTION
  ● Refer to functions with `glue::fun()`
  ● Refer to functions with `golem::fun()`
  ✔ Adding 'htmltools' to Imports field in DESCRIPTION
  ● Refer to functions with `htmltools::fun()`
  ● Refer to functions with `shiny::fun()`
  ✔ Dependencies added
  ✔ Adding 'testthat' to Suggests field in DESCRIPTION
  ✔ Creating 'tests/testthat/'
  ✔ Writing 'tests/testthat.R'
  ● Call `use_test()` to initialize a basic test file and open it for editing.
  ✔ Tests added
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/R/golem_utils_ui.R
  ✔ Utils UI added
  ✔ File created at /tmp/RtmpA4Bon5/txpypxmflv/R/golem_utils_server.R
  ✔ Utils server added
  ── Created ─────────────────────────────────────────────────────────────────────
  Writing NAMESPACE
  Writing NAMESPACE
  Writing run_app.Rd
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 73 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Failure: add_ui_server_files (@test-add_function.R#62) 
  
  Error: testthat unit tests failed
  Execution halted