* using log directory ‘/srv/hornik/tmp/CRAN_pretest/gtaR.Rcheck’ * using R Under development (unstable) (2025-03-17 r87990) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (1+b1) Debian flang-new version 19.1.7 (1+b1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘gtaR/DESCRIPTION’ ... OK * this is package ‘gtaR’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/3s] WARNING Maintainer: ‘Ernest Wong , Shiqi Zhang , Jiakun Li ’ The maintainer field is invalid or specifies more than one person New submission License components with restrictions and base license permitting such: MIT + file LICENSE Possibly misspelled words in DESCRIPTION: GTA (8:10) Unknown, possibly misspelled, fields in DESCRIPTION: ‘Key Features’ No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(given = "Ernest", family = "Wong", role = c("aut", "cre"), email = "jacob.jiakunli@gmail.com"), person(given = "Shiqi", family = "Zhang", role = "aut"), person(given = "Jiakun", family = "Li", role = "aut")) as necessary. * 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 ... NOTE Found the following hidden files and directories: myPackage/.Rbuildignore These were most likely included in error. See section ‘Package structure’ in the ‘Writing R Extensions’ manual. CRAN-pack does not know about myPackage/.Rbuildignore * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘gtaR’ can be installed ... [2s/2s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... WARNING Invalid license file pointers: LICENSE * checking top-level files ... NOTE Non-standard files/directories found at top level: ‘coverage_report.html’ ‘gtaR.Rproj’ ‘lib’ ‘myPackage’ ‘plot_restaurants.png’ ‘test.R’ * 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 ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] 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 ... [2s/2s] NOTE best_cuisine_in_area: no visible global function definition for ‘%>%’ best_cuisine_in_area: no visible global function definition for ‘group_by’ best_cuisine_in_area: no visible binding for global variable ‘categories’ best_cuisine_in_area: no visible global function definition for ‘summarize’ best_cuisine_in_area: no visible binding for global variable ‘rating’ best_cuisine_in_area: no visible global function definition for ‘n’ best_cuisine_in_area: no visible global function definition for ‘arrange’ best_cuisine_in_area: no visible global function definition for ‘desc’ best_cuisine_in_area: no visible binding for global variable ‘avg_rating’ best_cuisine_in_area: no visible binding for global variable ‘restaurant_count’ find_closest_cuisine_match: no visible global function definition for ‘stringdistmatrix’ list_available_locations: no visible global function definition for ‘tibble’ plot_best_restaurants: no visible global function definition for ‘%>%’ plot_best_restaurants: no visible global function definition for ‘arrange’ plot_best_restaurants: no visible global function definition for ‘desc’ plot_best_restaurants: no visible binding for global variable ‘rating’ plot_best_restaurants: no visible binding for global variable ‘review_count’ plot_best_restaurants: no visible global function definition for ‘head’ plot_best_restaurants: no visible global function definition for ‘ggplot’ plot_best_restaurants: no visible global function definition for ‘aes’ plot_best_restaurants: no visible global function definition for ‘geom_point’ plot_best_restaurants: no visible global function definition for ‘geom_text_repel’ plot_best_restaurants: no visible binding for global variable ‘name’ plot_best_restaurants: no visible global function definition for ‘scale_color_gradient’ plot_best_restaurants: no visible global function definition for ‘labs’ plot_best_restaurants: no visible global function definition for ‘theme_minimal’ search_restaurants: no visible global function definition for ‘GET’ search_restaurants: no visible global function definition for ‘add_headers’ search_restaurants: no visible global function definition for ‘http_status’ search_restaurants: no visible global function definition for ‘content’ search_restaurants: no visible global function definition for ‘tibble’ search_restaurants: no visible global function definition for ‘%>%’ search_restaurants: no visible global function definition for ‘mutate’ search_restaurants: no visible binding for global variable ‘price’ search_restaurants: no visible global function definition for ‘filter’ search_restaurants: no visible binding for global variable ‘price_numeric’ search_restaurants: no visible global function definition for ‘arrange’ search_restaurants: no visible global function definition for ‘desc’ search_restaurants: no visible global function definition for ‘select’ Undefined global functions or variables: %>% GET add_headers aes arrange avg_rating categories content desc filter geom_point geom_text_repel ggplot group_by head http_status labs mutate n name price price_numeric rating restaurant_count review_count scale_color_gradient select stringdistmatrix summarize theme_minimal tibble Consider adding importFrom("stats", "filter") importFrom("utils", "head") to your NAMESPACE file. * checking Rd files ... [0s/0s] 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 examples ... NONE * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [1s/1s] ERROR Running ‘testthat.R’ [1s/1s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # 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 * checking PDF version of manual ... [2s/2s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 WARNINGs, 3 NOTEs