R Under development (unstable) (2024-02-02 r85855 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(comtradr) > > test_check("comtradr") 1,1,1v Checked validity of type. v Checked validity of frequency. v Checked validity of commodity_classification. v Checked validity of flow_direction. v Checked validity of commodity_code. v Checked validity of reporter. v Checked validity of partner. v Checked validity of partner_2. v Checked validity of mode_of_transport. v Checked validity of customs_code. v Checked validity of start and end dates. i URL that will be queried: https://comtradeapi.un.org/data/v1/get/S/A/EB?cmdCode=200&flowCode=M%2CX%2CRM%2CRX&partnerCode=32%2C280%2C276&reporterCode=156&period=2010&motCode=0&partner2Code=0&customsCode=C00&includeDesc=TRUE i Performing request, which can take a few seconds, depending on the amount of data queried. v Checked validity of type. v Checked validity of frequency. v Checked validity of commodity_classification. v Checked validity of flow_direction. v Checked validity of commodity_code. v Checked validity of reporter. v Checked validity of partner. v Checked validity of partner_2. v Checked validity of mode_of_transport. v Checked validity of customs_code. v Checked validity of start and end dates. i URL that will be queried: https://comtradeapi.un.org/data/v1/get/S/A/EB?cmdCode=200&flowCode=M%2CX%2CRM%2CRX&partnerCode=32%2C280%2C276&reporterCode=156&period=2010&motCode=0&partner2Code=0&customsCode=C00&includeDesc=TRUE i Performing request, which can take a few seconds, depending on the amount of data queried. v Checked validity of type. v Checked validity of frequency. v Checked validity of commodity_classification. v Checked validity of flow_direction. v Checked validity of commodity_code. v Checked validity of reporter. v Checked validity of partner. v Checked validity of partner_2. v Checked validity of mode_of_transport. v Checked validity of customs_code. v Checked validity of start and end dates. i URL that will be queried: https://comtradeapi.un.org/data/v1/get/C/A/HS?cmdCode=TOTAL&flowCode=M%2CX%2CRM%2CRX&partnerCode=32%2C280%2C276&reporterCode=156&period=2010&motCode=0&partner2Code=0&customsCode=C00&includeDesc=TRUE i Performing request, which can take a few seconds, depending on the amount of data queried. [ FAIL 0 | WARN 0 | SKIP 0 | PASS 102 ] > > proc.time() user system elapsed 2.70 0.56 3.50