CRAN Package Check Results for Maintainer ‘Taylor Denouden <taylor.denouden at hakai.org>’

Last updated on 2024-06-16 05:53:29 CEST.

Package ERROR OK
hakaiApi 1 12

Package hakaiApi

Current CRAN status: ERROR: 1, OK: 12

Version: 1.0.2
Check: examples
Result: ERROR Running examples in 'hakaiApi-Ex.R' failed The error most likely occurred in: > ### Name: Client > ### Title: The Hakai API Client Class > ### Aliases: Client > > ### ** Examples > > # Initialize a new client > client <- Client$new() Please go here and authorize: https://hecate.hakai.org/api-client-login Copy and past your credentials from the login page: Invalid credential format, try again. > # Follow authorization prompts to log in > > # Retrieve some data. See <https://hakaiinstitute.github.io/hakai-api/> for options. > url <- paste0(client$api_root, "/aco/views/projects?project_year=2020&fields=project_name") > projects_2020 <- client$get(url) Error in `bind_rows()`: ! Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. └─client$get(url) 2. └─private$json2tbl(httr::content(r)) 3. └─dplyr::bind_rows(data) 4. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) Execution halted Flavor: r-devel-windows-x86_64