Running 'testthat.R' [130s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(learningtower)
  The learningtower package (version 1.1.0) provides data from OECD PISA database between 2000 - 2022. For package size reasons, only a small subset is provided in the package. Use the function `load_student()` to access the full data.
  > 
  > test_check("learningtower")
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Downloading year 2000...
  
  trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  [ FAIL 7 | WARN 7 | SKIP 0 | PASS 202 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-merge.R:3:3'): Merging student and school data works correctly ──
  Error in `utils::download.file(url = url_git, destfile = tmp)`: cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Backtrace:
      ▆
   1. └─learningtower::load_student(2000) at test-merge.R:3:3
   2.   └─learningtower:::download_single_student(year = this_year)
   3.     └─utils::download.file(url = url_git, destfile = tmp)
  ── Error ('test-merge.R:24:3'): Merging student and countrycode data works correctly ──
  Error in `utils::download.file(url = url_git, destfile = tmp)`: cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Backtrace:
      ▆
   1. └─learningtower::load_student(2000) at test-merge.R:24:3
   2.   └─learningtower:::download_single_student(year = this_year)
   3.     └─utils::download.file(url = url_git, destfile = tmp)
  ── Error ('test-merge.R:44:3'): Sequential merging of student, school, and countrycode works ──
  Error in `utils::download.file(url = url_git, destfile = tmp)`: cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Backtrace:
      ▆
   1. └─learningtower::load_student(2000) at test-merge.R:44:3
   2.   └─learningtower:::download_single_student(year = this_year)
   3.     └─utils::download.file(url = url_git, destfile = tmp)
  ── Error ('test-student-col-types.R:36:5'): load_student() returns correct structure for full datasets ──
  Error in `utils::download.file(url = url_git, destfile = tmp)`: cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Backtrace:
      ▆
   1. └─learningtower::load_student(year) at test-student-col-types.R:36:5
   2.   └─learningtower:::download_single_student(year = this_year)
   3.     └─utils::download.file(url = url_git, destfile = tmp)
  ── Error ('test-test-load.R:2:3'): load student year can be done using both an integer and a character value ──
  Error in `utils::download.file(url = url_git, destfile = tmp)`: cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(load_student(2000), load_student("2000")) at test-test-load.R:2:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─learningtower::load_student(2000)
   5.   └─learningtower:::download_single_student(year = this_year)
   6.     └─utils::download.file(url = url_git, destfile = tmp)
  ── Failure ('test-test-load.R:7:3'): load multiple years, test is on if the data be be properly binded ──
  Expected `load_student(c("2000", "2003"))` to run without any errors.
  i Actually got a <simpleError> with text:
    cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  ── Error ('test-test-load.R:15:3'): test for load_student class functions ──────
  Error in `utils::download.file(url = url_git, destfile = tmp)`: cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-test-load.R:15:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─learningtower::load_student(year = 2000)
   5.   └─learningtower:::download_single_student(year = this_year)
   6.     └─utils::download.file(url = url_git, destfile = tmp)
  
  [ FAIL 7 | WARN 7 | SKIP 0 | PASS 202 ]
  Error: Test failures
  Execution halted