Last updated on 2026-04-29 21:49:12 CEST.
| Package | ERROR | OK |
|---|---|---|
| tidywikidatar | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.6.1
Check: examples
Result: ERROR
Running examples in ‘tidywikidatar-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tw_get_property_description
> ### Title: Get description of a Wikidata property in a given language
> ### Aliases: tw_get_property_description
>
> ### ** Examples
>
> tw_get_property_description(property = "P31")
Error in `httr2::resp_body_json()`:
! Unexpected content type "text/plain".
• Expecting type "application/json" or suffix "json".
Backtrace:
▆
1. ├─tidywikidatar::tw_get_property_description(property = "P31")
2. │ └─tidywikidatar:::tw_get_property_description_single(...)
3. │ ├─... %>% dplyr::pull("description")
4. │ └─tidywikidatar::tw_search_property(...)
5. │ └─tidywikidatar::tw_search(...)
6. │ ├─dplyr::left_join(...)
7. │ ├─dplyr:::left_join.data.frame(...)
8. │ │ └─dplyr::auto_copy(x, y, copy = copy)
9. │ │ ├─dplyr::same_src(x, y)
10. │ │ └─dplyr:::same_src.data.frame(x, y)
11. │ │ └─base::is.data.frame(y)
12. │ └─tidywikidatar:::tw_search_single(...)
13. │ └─httr2::req_perform(api_request) %>% httr2::resp_body_json()
14. ├─dplyr::pull(., "description")
15. ├─dplyr::filter(., .data$id == stringr::str_to_upper(property))
16. └─httr2::resp_body_json(.)
17. └─httr2::resp_check_content_type(...)
18. └─httr2:::check_content_type(...)
19. └─cli::cli_abort(...)
20. └─rlang::abort(...)
Execution halted
<pool> Checked-out object deleted before being returned.
<pool> Make sure to `poolReturn()` all objects retrieved with `poolCheckout().`
Flavor: r-devel-linux-x86_64-debian-gcc