- using R version 4.4.2 (2024-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-16) 14.2.0
GNU Fortran (Debian 14.2.0-16) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘wikkitidy/DESCRIPTION’ ... OK
- this is package ‘wikkitidy’ version ‘0.1.13’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘wikkitidy’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s/10s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking R/sysdata.rda ... OK
- checking examples ... [4s/7s] ERROR
Running examples in ‘wikkitidy-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: page_vector_functions
> ### Title: Get data about pages from their titles
> ### Aliases: page_vector_functions get_latest_revision get_page_html
> ### get_page_summary get_page_related get_page_talk get_page_langlinks
>
> ### ** Examples
>
> # Get language links for a known page on English Wikipedia
> get_page_langlinks("Charles Harpur")
# A tibble: 2 × 4
code name key title
<chr> <chr> <chr> <chr>
1 de Deutsch Charles_Harpur Charles Harpur
2 fr français Charles_Harpur Charles Harpur
>
> # Many of these functions return a list of data frames. Tidyr can be useful.
> # Get 20 related pages for German City
> cities <- tibble::tribble(
+ ~city,
+ "Berlin",
+ "Darmstadt",
+ ) %>%
+ dplyr::mutate(related = get_page_related(city))
Error in `dplyr::mutate()`:
ℹ In argument: `related = get_page_related(city)`.
Caused by error in `purrr::pmap()`:
ℹ In index: 1.
Caused by error in `_fn`:
! HTTP 403 Forbidden.
Backtrace:
▆
1. ├─tibble::tribble(~city, "Berlin", "Darmstadt", ) %>% ...
2. ├─dplyr::mutate(., related = get_page_related(city))
3. ├─dplyr:::mutate.data.frame(., related = get_page_related(city))
4. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
5. │ ├─base::withCallingHandlers(...)
6. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
7. │ └─mask$eval_all_mutate(quo)
8. │ └─dplyr (local) eval()
9. ├─wikkitidy::get_page_related(city)
10. │ └─wikkitidy:::get_rest_resource(...)
11. │ └─purrr::pmap(params, get_one, .progress = T)
12. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
13. │ ├─purrr:::with_indexed_errors(...)
14. │ │ └─base::withCallingHandlers(...)
15. │ ├─purrr:::call_with_cleanup(...)
16. │ └─purrr (local) .f(...)
17. └─httr2 (local) `_fn`(`_out`)
18. └─httr2:::handle_resp(req, resp, error_call = error_call)
19. └─httr2:::resp_abort(resp, req, body, call = error_call)
20. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/10s] OK
Running ‘testthat.R’ [6s/9s]
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR