Running ‘tinytest.R’ [2s/6s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > 
  > if (requireNamespace("tinytest", quietly = TRUE)) {
  +   tinytest::test_package("correspondenceTables")
  + } else {
  +   message("tinytest not installed: test not performed")
  + }
  
  test_A_endpoints.R............    0 tests    61ms
  
  test_aggregateCorrespondenceTable.R    1 tests OK 
  test_aggregateCorrespondenceTable.R    6 tests OK 
  test_aggregateCorrespondenceTable.R    7 tests OK 
  test_aggregateCorrespondenceTable.R    8 tests OK 
  test_aggregateCorrespondenceTable.R    9 tests OK 
  test_aggregateCorrespondenceTable.R   14 tests OK 
  test_aggregateCorrespondenceTable.R   17 tests OK 0.4s
  
  test_analyseCorrespondenceTable.R    8 tests OK 
  test_analyseCorrespondenceTable.R   10 tests OK 
  test_analyseCorrespondenceTable.R   14 tests OK 
  test_analyseCorrespondenceTable.R   17 tests OK 
  test_analyseCorrespondenceTable.R   19 tests OK 
  test_analyseCorrespondenceTable.R   36 tests OK 
  test_analyseCorrespondenceTable.R   39 tests OK 
  test_analyseCorrespondenceTable.R   43 tests OK 
  test_analyseCorrespondenceTable.R   49 tests OK 
  test_analyseCorrespondenceTable.R   51 tests OK 
  test_analyseCorrespondenceTable.R   53 tests OK 
  test_analyseCorrespondenceTable.R   57 tests OK 
  test_analyseCorrespondenceTable.R   58 tests OK 
  test_analyseCorrespondenceTable.R   59 tests OK 
  test_analyseCorrespondenceTable.R   60 tests OK 
  test_analyseCorrespondenceTable.R   61 tests OK 0.4s
  
  test_classificationQC.R.......    0 tests    
  test_classificationQC.R.......    4 tests OK 
  test_classificationQC.R.......    5 tests OK 
  test_classificationQC.R.......    7 tests OK 
  test_classificationQC.R.......   11 tests OK labelHierarchy is NULL so no treatment
  test_classificationQC.R.......   12 tests OK 
  test_classificationQC.R.......   22 tests OK 0.3s
  
  test_dataStructure.R..........    1 tests OK 
  test_dataStructure.R..........    1 tests OK The following SPARQL code was used in the call:
  
  PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  SELECT
    (?scheme AS ?URI)
    (COALESCE(STR(?notation),
              REPLACE(REPLACE(STR(?scheme), '^.*/', ''), '[^A-Za-z]+.*', '')) AS ?Prefix)
    (COALESCE(SAMPLE(STR(?title_en)), '') AS ?Title)
    (GROUP_CONCAT(DISTINCT LANG(?clab); SEPARATOR=', ') AS ?Languages)
  WHERE {
    ?scheme rdf:type skos:ConceptScheme ;
            skos:prefLabel ?title_en .
    FILTER (LANG(?title_en) = 'en')
  
    OPTIONAL { ?scheme skos:notation ?notation }
  
    ?concept a skos:Concept ;
             skos:inScheme ?scheme ;
             skos:prefLabel ?clab .
    FILTER (LANG(?clab) != '')
  }
  GROUP BY ?scheme ?notation
  ORDER BY ?Prefix
  
  The above SPARQL call to https://caliper.integratedmodelling.org/caliper/sparql generated the following error message:
  Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 213 ms: Could not connect to server
  
  test_dataStructure.R..........    2 tests 1 fails 0.3s
  
  test_newCorrespondenceTable.R.    0 tests    
  test_newCorrespondenceTable.R.    0 tests    
  test_newCorrespondenceTable.R.    0 tests    
  test_newCorrespondenceTable.R.    2 tests OK 
  test_newCorrespondenceTable.R.    3 tests OK 0.4s
  
  test_prefixList.R.............    0 tests    
  test_prefixList.R.............    0 tests    
  test_prefixList.R.............    1 tests OK 
  test_prefixList.R.............    2 tests OK 
  test_prefixList.R.............    2 tests OK 6ms
  
  test_retrieveClassificationTable.R    1 tests OK 
  test_retrieveClassificationTable.R    1 tests OK 
  test_retrieveClassificationTable.R    1 tests OK 
  test_retrieveClassificationTable.R    1 tests OK 
  test_retrieveClassificationTable.R    2 tests OK 
  test_retrieveClassificationTable.R    3 tests OK 
  test_retrieveClassificationTable.R    3 tests OK 
  test_retrieveClassificationTable.R    4 tests OK 
  test_retrieveClassificationTable.R    4 tests OK 
  test_retrieveClassificationTable.R    5 tests OK 
  test_retrieveClassificationTable.R    5 tests OK 
  test_retrieveClassificationTable.R    5 tests OK 
  test_retrieveClassificationTable.R    6 tests OK 
  test_retrieveClassificationTable.R    7 tests OK 
  test_retrieveClassificationTable.R    7 tests OK 
  test_retrieveClassificationTable.R    8 tests OK 
  test_retrieveClassificationTable.R    8 tests OK 
  test_retrieveClassificationTable.R    9 tests OK 0.9s
  
  test_retrieveCorrespondenceTable.R    0 tests    
  test_retrieveCorrespondenceTable.R    1 tests OK The following SPARQL code was used in the call:
  
  PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  SELECT
    (?scheme AS ?URI)
    (COALESCE(STR(?notation),
              REPLACE(REPLACE(STR(?scheme), '^.*/', ''), '[^A-Za-z]+.*', '')) AS ?Prefix)
    (COALESCE(SAMPLE(STR(?title_en)), '') AS ?Title)
    (GROUP_CONCAT(DISTINCT LANG(?clab); SEPARATOR=', ') AS ?Languages)
  WHERE {
    ?scheme rdf:type skos:ConceptScheme ;
            skos:prefLabel ?title_en .
    FILTER (LANG(?title_en) = 'en')
  
    OPTIONAL { ?scheme skos:notation ?notation }
  
    ?concept a skos:Concept ;
             skos:inScheme ?scheme ;
             skos:prefLabel ?clab .
    FILTER (LANG(?clab) != '')
  }
  GROUP BY ?scheme ?notation
  ORDER BY ?Prefix
  
  The above SPARQL call to https://caliper.integratedmodelling.org/caliper/sparql generated the following error message:
  Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 44 ms: Could not connect to server
  classificationList() failed for endpoint 'FAO': Error in classificationList(FAO): endpoint unavailable or returned unexpected data. Returning empty result.
  Error in curl::curl_fetch_memory(url, handle = handle): Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 56 ms: Could not connect to server
  Request failed [ERROR]. Retrying in 1 seconds...
  SPARQL query failed for 'FAO': Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 43 ms: Could not connect to server. Returning empty result.
  The following SPARQL code was used in the call:
  
  PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  SELECT
    (?scheme AS ?URI)
    (COALESCE(STR(?notation),
              REPLACE(REPLACE(STR(?scheme), '^.*/', ''), '[^A-Za-z]+.*', '')) AS ?Prefix)
    (COALESCE(SAMPLE(STR(?title_en)), '') AS ?Title)
    (GROUP_CONCAT(DISTINCT LANG(?clab); SEPARATOR=', ') AS ?Languages)
  WHERE {
    ?scheme rdf:type skos:ConceptScheme ;
            skos:prefLabel ?title_en .
    FILTER (LANG(?title_en) = 'en')
  
    OPTIONAL { ?scheme skos:notation ?notation }
  
    ?concept a skos:Concept ;
             skos:inScheme ?scheme ;
             skos:prefLabel ?clab .
    FILTER (LANG(?clab) != '')
  }
  GROUP BY ?scheme ?notation
  ORDER BY ?Prefix
  
  The above SPARQL call to https://caliper.integratedmodelling.org/caliper/sparql generated the following error message:
  Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 45 ms: Could not connect to server
  classificationList() failed for endpoint 'FAO': Error in classificationList(FAO): endpoint unavailable or returned unexpected data. Returning empty result.
  Error in curl::curl_fetch_memory(url, handle = handle): Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 44 ms: Could not connect to server
  Request failed [ERROR]. Retrying in 1 seconds...
  SPARQL query failed for 'FAO': Could not connect to server [caliper.integratedmodelling.org]:
  Failed to connect to caliper.integratedmodelling.org port 443 after 45 ms: Could not connect to server. Returning empty result.
  
  test_retrieveCorrespondenceTable.R    2 tests OK 2.3s
  
  test_updateCorrespondenceTable.R    6 tests OK 
  test_updateCorrespondenceTable.R    7 tests OK 
  test_updateCorrespondenceTable.R    8 tests OK 
  test_updateCorrespondenceTable.R    9 tests OK 0.6s
  ----- FAILED[xcpt]: test_dataStructure.R<99--110>
   call| expect_error(suppressWarnings(dataStructure(endpoint = "FAO", 
   call| -->    prefix = "XXX", conceptScheme = "YYY", language = "en")), 
   call| -->    "(?i)Could not resolve the requested classification", fixed = FALSE)
   diff| The error message:
   diff| 'Error in classificationList(FAO): endpoint unavailable or returned unexpected data'
   diff| does not match pattern '(?i)Could not resolve the requested classification'
  Error: 1 out of 127 tests failed
  Execution halted