Running ‘testthat.R’ [7s/106s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("markmyassignment")
  Loading required package: markmyassignment
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-mark_my_assignment.R:5:3): mark_my_assignment() ─────────────────
  Error in `path_type(file.path(base_path, sub_path))`: '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/markmyassignment/extdata/https://raw.githubusercontent.com/MansMeg/markmyassignment/master/inst/extdata/example_task2_a.R' is an incorrect path.
  Backtrace:
      █
   1. ├─base::suppressWarnings(...) test-mark_my_assignment.R:5:2
   2. │ └─base::withCallingHandlers(...)
   3. ├─base::suppressMessages(...)
   4. │ └─base::withCallingHandlers(...)
   5. └─markmyassignment::set_assignment(...)
   6.   └─markmyassignment:::download_assignment(assignment, path)
   7.     └─markmyassignment:::get_assignment_full_subpath(...)
   8.       └─markmyassignment:::path_type(file.path(base_path, sub_path))
  ── Error (test-mark_my_assignment.R:68:3): Assertions on arguments mark_my_assignment() ──
  Error in `path_type(file.path(base_path, sub_path))`: '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/markmyassignment/extdata/https://raw.githubusercontent.com/MansMeg/markmyassignment/master/inst/extdata/example_task2_a.R' is an incorrect path.
  Backtrace:
      █
   1. ├─base::suppressMessages(...) test-mark_my_assignment.R:68:2
   2. │ └─base::withCallingHandlers(...)
   3. └─markmyassignment::set_assignment(...)
   4.   └─markmyassignment:::download_assignment(assignment, path)
   5.     └─markmyassignment:::get_assignment_full_subpath(...)
   6.       └─markmyassignment:::path_type(file.path(base_path, sub_path))
  ── Error (test-mark_my_dir.R:8:3): mark_my_dir() ───────────────────────────────
  Error in `mark_my_dir(directory = test_dir, assignment_path = test_assgn_file)`: Error in path_type(file.path(base_path, sub_path)) : 
    '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/markmyassignment/extdata/https://raw.githubusercontent.com/MansMeg/markmyassignment/master/inst/extdata/example_task2_a.R' is an incorrect path.
  
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-mark_my_dir.R:8:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─testthat::capture_output(...)
    7. │ └─testthat::capture_output_lines(code, print, width = width)
    8. │   └─testthat:::eval_with_output(code, print = print, width = width)
    9. │     ├─withr::with_output_sink(temp, withVisible(code))
   10. │     │ └─base::force(code)
   11. │     └─base::withVisible(code)
   12. └─markmyassignment::mark_my_dir(directory = test_dir, assignment_path = test_assgn_file)
  ── Error (test-mark_my_file.R:11:3): mark_my_file() ────────────────────────────
  Error in `mark_my_file(mark_file = source_file, assignment_path = assignment_file, 
      quiet = TRUE)`: Error in path_type(file.path(base_path, sub_path)) : 
    '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/markmyassignment/extdata/https://raw.githubusercontent.com/MansMeg/markmyassignment/master/inst/extdata/example_task2_a.R' is an incorrect path.
  
  Backtrace:
      █
   1. ├─utils::capture.output(...) test-mark_my_file.R:11:2
   2. │ └─base::withVisible(...elt(i))
   3. └─markmyassignment::mark_my_file(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 163 ]
  Error: Test failures
  Execution halted