Cleaned helpfile to hide internal utility functions from end users.
Removed obsolete function structureData() and related documentation.
Marked classificationEndpoint() and correspondenceList() as deprecated,
in favour of classificationList() and correspondenceTableList().
Harmonised user-facing extraction functions:
all now expose a showQuery argument with consistent ordering of parameters.
Clarified in the documentation which functions accept both data.frames
and CSV file paths as input (e.g. classificationQC()).
Added basic unit tests to ensure internal utilities are not exported and that the interface of extraction functions is stable.
Reworked classificationList() to:
Prefix (lower-case, no spaces) compatible with
retrieveClassificationTable(),Languages column summarising all languages used in concept labels,useLocalDataForVignettes.Made classificationEndpoint() a thin deprecated wrapper around
classificationList(), with dedicated tests checking argument names,
returned values and deprecation warnings.
Updated aggregateCorrespondenceTable() and
analyseCorrespondenceTable() to:
testInputTable(),CSVout as the last argument and validate it via testCsvParameter().Simplified retrieveClassificationTable():
localData argument (behaviour now governed solely by
options(useLocalDataForVignettes = TRUE/FALSE)),showQuery contract (data.frame vs list with SPARQL.query),endpoint, prefix, conceptScheme,
language, level, CSVout, showQuery).Aligned the interface of retrieveCorrespondenceTable() so that endpoint
precedes prefix and updated the documentation and tests accordingly.
Updated lengthsFile() to:
correction is a Boolean argument,Reordered arguments of newCorrespondenceTable() so that:
Tables, Reference,
MismatchTolerance, Redundancy_trim),CSVout is now the final, optional output argument,Updated updateCorrespondenceTable() so that:
A, B, Astar, AB, AAstar)
accept either CSV file paths or data.frames,CSVout is the last argument,New features
Added correspondenceList() to list available correspondence tables in CELLAR and FAO,
with a structured output and improved robustness against malformed SPARQL responses.
Extended classificationList() with:
endpoint ("CELLAR", "FAO", "ALL")showQuery to return SPARQL queries.
Now supports offline mode via options(useLocalDataForVignettes = TRUE) using
bundled CSV files for reproducible vignette builds and offline work.Improvements and API changes
correctionClassification():
prefix argument to enable prefix-specific corrections.inst/extdata/Nace2.csv) so
that examples work offline and during CRAN checks.lengthsFile():
retrieveClassificationTable():
utils::capture.output and utils::str.Quality control module
classificationQC() functionality has been temporarily disabled for this
release (tests skipped), but its supporting imports (stringr, tools) remain
in place for the upcoming version.Testing improvements
Added new unit tests for:
dataStructure() : validation of returned level/size structure.prefixList() : consistency of prefix extraction for each endpoint.retrieveCorrespondenceTable() : correct parsing, duplicate checks, error handling.retrieveClassificationTable() : correct structure, column naming, error detection.Updated existing tests for:
analyseCorrespondenceTable() : better handling of missing files, mismatches,
duplicates, and filtering options.aggregateCorrespondenceTable() : improved robustness when validating AB tables.Changes and Improvements
classificationList() and correspondenceTableList() to handle the "ALL" endpoint through recursive calls, ensuring consistent and robust behavior.prefixList() is now no longer exported, as it is not meant for end-users. It remains accessible via correspondenceTables:::prefixList() if needed.correspondenceTableList("ALL")) to improve readability and reproducibility.prefixList() from examples to avoid confusion.result_ls).@examples sections and corrected Rd documentation accordingly.Package Infrastructure
R CMD check compliance (0 errors, 0 warnings, 1 note on line width).Minor
\VignetteIndexEntry.prefixList(), classEndpoint(), correspondenceList(), retrieveCorrespondenceTable(), retrieveClassificationTable(), structureData()newCorrespondenceTable() and updateCorrespondenceTable() functionsreadr::write_excel_csv() with data.table::fwrite()newCorrespondenceTable() using only the 100 hundred rows of the classificationstxtProgressBar() and setTxtProgressBar() functionscat() with message() function