R version 4.5.0 alpha (2025-03-17 r87990 ucrt) Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(gtaR) > > test_check("gtaR") [ FAIL 4 | WARN 0 | SKIP 0 | PASS 6 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_best_cuisine_in_area.R:7:3'): best_cuisine_in_area() returns valid data ── Error in `get_yelp_api_key()`: YELP_API_KEY is not set. Please add it to your .Renviron file. Backtrace: ▆ 1. └─gtaR::best_cuisine_in_area(location = "Vancouver, BC", limit = 10) at test_best_cuisine_in_area.R:7:3 2. └─gtaR::search_restaurants(...) 3. └─gtaR::get_yelp_api_key() ── Error ('test_get_restaurant_details.R:5:3'): get_restaurant_details() returns valid details ── Error in `get_yelp_api_key()`: YELP_API_KEY is not set. Please add it to your .Renviron file. Backtrace: ▆ 1. └─gtaR::get_restaurant_details(query = "Miku", location = "Vancouver, BC") at test_get_restaurant_details.R:5:3 2. └─gtaR::search_restaurants(term = query, location = location, limit = 1) 3. └─gtaR::get_yelp_api_key() ── Error ('test_plot_best_restaurants.R:7:3'): plot_best_restaurants() produces a ggplot object ── Error in `get_yelp_api_key()`: YELP_API_KEY is not set. Please add it to your .Renviron file. Backtrace: ▆ 1. └─gtaR::search_restaurants(...) at test_plot_best_restaurants.R:7:3 2. └─gtaR::get_yelp_api_key() ── Error ('test_search_restaurants.R:12:3'): search_restaurants() returns valid results ── Error in `get_yelp_api_key()`: YELP_API_KEY is not set. Please add it to your .Renviron file. Backtrace: ▆ 1. └─gtaR::search_restaurants(...) at test_search_restaurants.R:12:3 2. └─gtaR::get_yelp_api_key() [ FAIL 4 | WARN 0 | SKIP 0 | PASS 6 ] Error: Test failures Execution halted