Last updated on 2025-07-31 09:50:29 CEST.
Package | ERROR | OK |
---|---|---|
learningtower | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [8s/17s]
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'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2003...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2003.rds'
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
Downloading year 2003...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2003.rds'
Downloading year 2000...
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2000.rds'
Content type 'application/octet-stream' length 1493816 bytes (1.4 MB)
==================================================
downloaded 1.4 MB
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 239 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── 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_2003.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)
── 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_2003.rds'
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 239 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘learningtower_school.Rmd’ using rmarkdown
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2018.rds'
Content type 'application/octet-stream' length 9945304 bytes (9.5 MB)
==================================================
downloaded 9.5 MB
--- finished re-building ‘learningtower_school.Rmd’
--- re-building ‘learningtower_student.Rmd’ using rmarkdown
trying URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2012.rds'
Quitting from learningtower_student.Rmd:100-143 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `utils::download.file()`:
! cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2012.rds'
---
Backtrace:
▆
1. └─learningtower::load_student(c(2012, 2018))
2. └─learningtower:::download_single_student(year = this_year)
3. └─utils::download.file(url = url_git, destfile = tmp)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'learningtower_student.Rmd' failed with diagnostics:
cannot open URL 'https://github.com/kevinwang09/learningtower/raw/master/student_full_data/student_2012.rds'
--- failed re-building ‘learningtower_student.Rmd’
SUMMARY: processing the following file failed:
‘learningtower_student.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang