This release changes how a dataset records its references, and the columns that hold them. Existing databases need their metadata.yml files converted, and their twelve-month traits retyped, before they build: follow the steps under “Upgrading a database to 3.0.0” below. Built databases follow data model 1.4.0 (https://w3id.org/traits.build), and are read with traits.use.

Upgrading a database to 3.0.0

Work through these in a database repository, in order, then rebuild and compare the output with the last build.

  1. Install traits.build 3.0.0, which installs traits.use 1.0.0: remotes::install_github("traitecoevo/traits.build@v3.0.0").
  2. From the repository root, run traits.build::metadata_convert_sources(). It converts the source: block of every data/*/metadata.yml and lists what needs a person: a dataset reference whose key is not the dataset_id, and source_id values that name no reference. Fix those by hand.
  3. In config/traits.yml, set type: monthly_presence on every trait whose values are twelve y/n characters, one per month (in AusTraits, flowering_time, fruiting_time, foliage_time and recruitment_time). Every trait needs a type of numeric, categorical, monthly_presence or text.
  4. Regenerate the pipeline with build_setup_pipeline(), or change austraits::bind_databases() to traits.use::bind_databases() in build.R, remake.yml or _targets.R.
  5. Run dataset_test() on every dataset. Version 3.0.0 checks more, so datasets that passed before can fail: see “dataset_test()” below. The usual fixes are .na for a field left empty, an explicit collection_date such as .na/2009, and removing a traits entry whose var_in names a trait the long-format data does not hold.
  6. Look for traits entries that set basis_of_record, life_stage, collection_date, measurement_remarks or entity_type to the same value as the dataset block, in datasets whose locations set a different value. These entries now override the location: delete them to keep the location’s value.
  7. Update code that reads the built database: read it with traits.use, which knows the new columns, use the renamed methods columns below, and read the schema’s table descriptions from schema$database rather than schema$austraits.

Breaking changes

  • References in metadata.yml now have a type. The source: block holds the dataset’s own reference under dataset: (was primary:), keyed by the dataset_id, then optional lists source: (for a compilation, the studies its observations were taken from; was original_source:, original: or original_NN:) and secondary: (later publications that re-used the data; was secondary: or secondary_NN:). The old shape is no longer read. Run metadata_convert_sources() from a database’s root to convert every metadata.yml; it reports what needs a person to decide. metadata_add_source_bibtex() and metadata_add_source_doi() take type = "dataset", "source" or "secondary" (#296).
  • Every observation has a source_id, the key of the reference it was taken from, so sources[[source_id]] is its citation. It is the dataset_id unless a compilation maps source_id to a column of data.csv. It is the second column of traits and excluded_data, and observation ids are unchanged by it (#296).
  • The methods table’s reference columns are renamed to match: source_primary_type becomes dataset_id_type (the BibTeX entry type, such as Article or Thesis, of the dataset’s own reference), source_primary_citation becomes dataset_id_citation, source_secondary_key becomes secondary_id and source_secondary_citation becomes secondary_citation. source_primary_key, which always equalled the dataset_id, and source_original_dataset_key/_citation are dropped; traits.use::join_sources() joins each observation’s citation instead.
  • Read these databases with traits.use, not austraits 3.1.1 or earlier. The old austraits accepts them, then fails on the renamed columns: extract_trait(), extract_dataset() and extract_taxa() stop with “non-character argument”, and as_wide_table() with “Column source_primary_citation doesn’t exist”. austraits 4.0.0 (released 24 November 2026) reads them through traits.use.
  • traits.build depends on traits.use instead of austraits. traits.use is the generic reader for any traits.build database, split out of austraits (traitecoevo/austraits#188). Pipelines written by build_setup_pipeline() call traits.use::bind_databases(); an older build.R, remake.yml or _targets.R calling austraits::bind_databases() needs austraits installed or the pipeline regenerated. load_austraits(), get_versions() and get_version_latest() now need library(austraits), and plot_locations() draws no map of Australia unless given one.
  • The schema’s description of a compiled database is now called database, not austraits (#225). This is the top-level section of traits.build_schema.yml, which every built database also carries as its schema component, so code reading database$schema$austraits$elements should read database$schema$database$elements. get_schema(subsection = "austraits") still works, with a deprecation warning, and dataset_report() still reads databases built by earlier versions.
  • Arguments named austraits are now database, in build_add_version(), dataset_find_taxon(), dataset_report() and write_plaintext(), and austraits_raw is now database_raw, in dataset_update_taxonomy() and data_update_taxonomy() (#225). Calls that pass them by position, as every pipeline written by build_setup_pipeline() does, are unaffected; only calls naming the old argument need changing. A database’s own report template still receives the compiled database as params$austraits_path.
  • Two new trait types, monthly_presence and text, join numeric and categorical (#87). The check that a value is twelve y/n characters, one per month, now applies to every monthly_presence trait, rather than to traits named flowering_time and fruiting_time: declare twelve-month traits as monthly_presence in traits.yml, or their values go unchecked. A text trait holds free text, kept as written. Every trait must have one of the four types.
  • A value set on a trait’s entry in metadata.yml now takes precedence over a location’s for basis_of_record, life_stage, collection_date, measurement_remarks and entity_type: trait, then location, then the dataset block (#60). As these fields are part of observation_id, records can group into observations differently. A trait entry that only repeats the dataset’s default can now hide a location’s value.
  • dataset_test() checks more, so a dataset that passed under 2.2.0 can fail: see “dataset_test()” below.

New features

  • A built database records its data model version in metadata$data_model_version, which traits.use checks to decide whether it can read the database.
  • A database can add columns of its own to the traits table, such as specimen_type, listed with descriptions under additional_traits_table_fields in config/metadata.yml and set by each dataset like measurement_remarks (#314).
  • omit_values on a trait’s entry lists values a contributor used for “no value”, such as 0 or "-", in place of na_if() in custom_R_code (#12).
  • trait_value_term_order: input_order in config/metadata.yml keeps the terms of a multi-term value, such as tree shrub, in the order the source gave them; the default, alphabetical, sorts them as before (#297).
  • A source or secondary list can be kept in a .yml or .bib file beside metadata.yml, for a compilation citing many studies. util_flatten_sources() reads a source: block into one row per reference.
  • A database repository can define post_build(database) in R/post_build.R, run on every build after the datasets are combined, and post_export(database, path) in R/post_export.R, for outputs wanted only at release; see build_post_process() and build_post_export() (#197).
  • Review tools for curators, which list values to look at rather than failing a test: dataset_check_outlier_by_species() and dataset_check_outlier_by_genus() for numeric values far from other datasets’ (unit slips, misplaced decimal points), dataset_check_duplicates_within_dataset() for a species-level value repeated on every row, and dataset_check_categorical_substitutions() for a table of the substitutions a dataset still needs.
  • For custom_R_code: util_parse_collection_date() converts a column of raw dates to the collection_date format, and move_values_to_new_trait() and move_values_to_new_trait_long(), moved from austraits.build, move values recorded under the wrong trait (#162).
  • The dataset report shipped with the package describes any database, from its config/metadata.yml, rather than AusTraits. dataset_report() uses a database’s own config/report_dataset.qmd when it has one (#140). The report lists references by type, and calls the rows of the traits table observations throughout.
  • zenodo_metadata(), zenodo_compare() and zenodo_deposit() deposit a release on Zenodo from the metadata block of config/metadata.yml, instead of typing it into Zenodo’s web form (#320). zenodo_deposit() creates a new version as a draft and never publishes it. It stops if a creator, contributor, related identifier or reference on the previous version would be dropped, unless each is named in allow_removals, and keeps the ORCIDs and affiliations the previous version has for people the repository lists without them. Contributors are the database’s data collectors and the datasets’ assistants, plus a new optional project_contributors list in config/metadata.yml for project staff who are not data collectors of any dataset. A funding reference reaches Zenodo only if it gives the new funder_identifier. httr2 and commonmark are suggested packages, needed only for depositing.

dataset_test()

  • Checks the new reference structure: the dataset reference is keyed by the dataset_id, every source_id names a reference, and every source reference is used.
  • Fails an entry in metadata.yml with a field left empty, which the build would drop without warning; write .na for a value that is deliberately missing (#307).
  • Fails missing collection_date values; record an unknown date explicitly, such as .na/2009.
  • A long-format dataset may hold traits it does not map, as a wide one may hold columns it does not map, but a traits entry whose var_in is not in the data fails (#308).
  • Allows the Greek alphabet, except GREEK SMALL LETTER MU, small omicron, and the capitals that look identical to ASCII letters, which dataset_replace_disallowed_chars() rewrites as the micro sign and those letters (#257).
  • Reports each failure once, without a backtrace, and stops checking a dataset after a failure the remaining checks depend on, such as a metadata.yml that is not valid YAML. A data.csv that cannot be read lists its problems by line (#213).

Bug fixes

  • A record whose entity_type is empty keeps its link to its location; only a species record is unlinked.
  • metadata_add_source_bibtex() and metadata_add_source_doi() key a dataset reference by the dataset_id exactly, rather than title-casing and truncating it (Smith_2020_2 became Smith_2020).
  • The review copy of the dataset report no longer asks “Can you provide missing details for the variable NA?” of a dataset with no unknown field in its dataset block, which was most datasets (a bug from 2.2.0’s show_questions).
  • The dataset report no longer fails on a dataset with a foliage_time trait. It left twelve-month traits out of its categorical section by a list of names that missed foliage_time; it now leaves out every monthly_presence and text trait.
  • The targets and remake pipelines rebuild a dataset when its reference file changes. A source: or secondary: reference list kept in a .yml or .bib file beside metadata.yml was read by dataset_configure() but not declared as a dependency, so editing it rebuilt nothing and the built database kept the old references. build_setup_pipeline() now declares these files as it already declared a locations: csv. Re-run build_setup_pipeline() to pick this up.
  • New dataset_check_duplicate_values() lists values in a compiled database that may duplicate data already in another dataset, for a curator to review rather than as a test. Numeric values match when they agree at the precision of the less precise one, however a halfway value was rounded, and within max_distance_km when both have coordinates; categorical values only when identical, georeferenced and nearby. Results are summarised per pair of datasets – the proportion of shared taxon x trait combinations that match, how many observations match on several traits, and how often each value occurs by chance across the trait – with the records behind each match, their locations and contexts. Run it for one dataset or for every pair in the database; a full sweep of AusTraits takes about 15 seconds.

  • A dataset whose collection_date column is not written as yyyy-mm-dd, yyyy-mm or yyyy can now declare the format it is written in, with collection_date_format in the dataset block of metadata.yml — dmy, say, or dmy my y for a column mixing full dates, month-year values and bare years. The build converts the column to the standard after custom_R_code runs. A column of timestamps, such as 2022-06-03T14:00:00Z, also needs collection_date_timezone, since that instant is 3 June in UTC but 4 June in Sydney. A value is never guessed at: one that does not match the declared format is left as it is. collection_date_format: auto works the format out from the whole column instead, choosing between dmy my y, mdy my y and ymd ym y; where more than one reads the column and they give different dates, as for a column of 4/07/2022-style values, it converts nothing and dataset_test() names the formats to choose between. Ranges of years written with a hyphen, 2019-2020, become 2019/2020. The same conversion is exported as util_format_collection_date(), for custom_R_code that needs standard dates before combining columns.

  • dataset_test() now reports collection_date values that are not standard, checked on the built dataset so it sees what the database will hold. Accepted are yyyy-mm-dd, yyyy-mm and yyyy dates that exist and fall between 1700 and today, ranges of two of these separated by / whose start is not after their end. A date written unknown/yyyy or .na/yyyy, with an unknown start, is stored as the year alone, yyyy; the build makes that change as it processes the dates, so metadata.yml and data.csv can keep either form.

  • dataset_report() gained show_questions. The default, TRUE, gives the review copy sent to a data contributor; FALSE gives a final copy for distribution, leaving out every question, the end-of-report question list, and the text that only explains them.

  • In the dataset report, the identifiers table now has one row per identifier declared in metadata.yml, with its own record count, rather than one row pasting every var_in, identifier_type and institution_code together. The numeric trait plots now include mode values, previously dropped (about 12,500 observations across AusTraits), and the question asking for individual-level measurements when a dataset is mostly means is removed.

  • dataset_replace_disallowed_chars() now also rewrites EM SPACE as a space, the fi ligature (from PDF text extraction) as fi, and INCREMENT (∆, which Option-J types on a Mac) as GREEK CAPITAL LETTER DELTA, and deletes SOFT HYPHEN, which marks only where a word may wrap. The schema allows GREEK SMALL and CAPITAL LETTER DELTA (δ13C, ΔT).

  • process_parse_data() no longer errors (bind_cols(): “Can’t recycle … to match … (size 0)”) when every dataset-level field it imports (collection_date, basis_of_record, life_stage, measurement_remarks, source_id, …) is read from a data column rather than given as a fixed value; previously such a dataset could not be built.

  • dataset_test() now accepts a context scoped to specific traits whose values are read from a data column rather than a fixed literal — a traits entry can set a field naming a column of data.csv (e.g. leaf_temp: LfT_Rdark, read per record), the same way process_parse_data() and process_format_contexts() already read it. Previously only a literal value (e.g. method_context: 250 mm branch) passed: dataset_test()’s context-consistency check compared the column’s actual per-record values against the field’s own declared value — the column name itself, never resolved against the data — which could never match, and any dataset using this pattern (already built correctly) failed validation with a confusing “context values … not present in metadata” error. A blank cell in that column is a record with no value for the context, as it is for a var_in naming a column directly (#276).

  • New dataset_find_pivot_duplicates() returns the rows behind dataset_test()’s “traits table cannot pivot wider” failure. It builds each dataset exactly as dataset_test() does and shares that check’s definition of a duplicate, so the two always agree. check_pivot_duplicates() run on a compiled database could report nothing for a failing dataset, because bind_databases() drops rows identical in every column; the new function flags those rows with exact_duplicate.

  • New metadata_dewrap_fields() rejoins text pasted into metadata.yml with the source’s hard line breaks – typically sampling_strategy and methods copied from a PDF or Word document – which leaves continuation lines YAML reads as new keys, so the file fails to parse. At a line ending in a hyphen it keeps the hyphen and joins the next line without a space, since a word split by the wrap (collec-tion) cannot be told from a compound (oven-dried); dehyphenate = TRUE removes the hyphen where it splits a lowercase word instead, and the preview lists every such join. It single-quotes a joined value that needs it (e.g. one containing ": " or " #"), and rewrites only those lines rather than reflowing the file through write_metadata(). custom_R_code is always copied through verbatim, since its line breaks are intentional. It previews by default; pass dry_run = FALSE to write.

  • The data-model build in ontology/ has a workflow: make ontology builds, make ontology-check validates and tests, make ontology-site renders and publishes into docs/ontology/, make ontology-release snapshots a version, and a CI workflow runs the first three on every pull request touching ontology/. The single 300-line script is now functions in ontology/R/ and scripts in ontology/scripts/, mirroring the APD’s build. The data-model version is the newest heading in the new ontology/NEWS.md rather than a hand-edited params block in index.qmd, and the page reads the schema from inst/support/ rather than from whichever traits.build happened to be installed. ontology/R/validate.R checks the inputs (every prefix:identifier reference resolves, keys are unique, every matched namespace has a Turtle prefix) and the outputs (statements parse and none is dropped), with a register of the defects already in the published RDF so that only new breakage fails; ontology/tests/testthat/test-golden.R rebuilds into a temporary directory and compares against the committed artefacts byte for byte. The build no longer ends by calling pkgdown::build_site(), which was failing on develop and was the step whose omission left the published model a release behind (#275).

  • Data model release 1.2.0, published at https://w3id.org/traits.build (#275, #276, #277). The site had been serving 1.0.0 since June 2025, although 1.1.0 (the identifiers table terms) had been built by #210. 1.2.0 matches the model to SOSA/SSN and the TERN Ontology, to the Darwin Core 2026-05-26 MeasurementOrFact and Assertion terms, and to the ETS terms for value_type and basis_of_value, and fixes defects in the published RDF. 74 external classes added; 2,054 to 2,467 statements. ontology/NEWS.md lists every change.

  • dataset_test() now accepts value_type and basis_of_value in a dataset’s dataset block, as the default for every trait that does not declare its own. The build has always honoured them there, but dataset_test() rejected them as invalid dataset fields and still demanded both on every trait, so metadata that built correctly failed validation (#249). A trait now needs only the fields its dataset block does not supply, and a value set on a trait still takes precedence over the dataset’s.

  • dataset_test() now reads every config file from path_config. The step that builds each dataset read config/traits.yml, config/metadata.yml, config/unit_conversions.csv and config/taxon_list.csv regardless of it, so a run from any other directory failed every dataset at “building dataset”. Those files are also now read once per run rather than once per dataset (#129).

  • dataset_test() no longer slows down in proportion to a dataset’s number of locations. It ran a separate expectation for every location to check it had coordinates, and each expectation costs a few milliseconds, so AVH_2026 in austraits.build, with 162,469 locations, took 507 seconds and ran 162,746 expectations. It now finds the locations that fail first and tests only those, taking that dataset to 39 seconds. The report is unchanged, verified line for line against 29 austraits.build datasets (#129).

  • dataset_test() now runs on testthat’s third edition, like the rest of the package, rather than switching back to the second for context(), which the third deprecates. Its report is unchanged apart from a Testing dataset_test header, verified against 29 austraits.build datasets. It can now also be run under a reporter that collects results rather than printing them, such as testthat::ListReporter, which previously aborted with attempt to use zero-length variable name (#234).

  • The dataset report template is now inst/support/report_dataset.qmd, replacing report_dataset.Rmd. dataset_report() renders it with quarto::quarto_render() rather than rmarkdown::render(), so building reports now needs the Quarto CLI (quarto R package, in Suggests). Because Quarto always renders by shelling out to that CLI, which does its own library(traits.build), report rendering now depends on what is installed, not on devtools::load_all() – edit the template and reinstall before re-rendering to see the change (the plotting functions are traits.use’s, so reinstall that after changing them). austraits is written to a temp .rds and passed to the template by path rather than through Quarto’s YAML-based execute_params, which cannot represent R’s NA and cannot hold an object this large.

  • plot_categorical_trait_distribution(), plot_trait_distribution_jitter() and plot_trait_distribution() (which dispatches to whichever of the two suits the trait) are now exported, so a dataset report’s plots are functions rather than living only inside the report template. They are re-exported from traits.use, which now holds the one copy shared with the AusTraits portal, so library(traits.build) no longer masks traits.use’s versions (traits.use#21). They take a whole database or a traits table, match the trait name exactly, and leave out bins and ranges themselves. They need the forcats, ggplot2 and scales already in Suggests. traits.build now requires traits.use 0.1.1 or later, the first version with the report’s plot changes.

  • new_taxa_trait_combinations() is renamed dataset_new_taxa_trait_combinations() and is now exported, so it can be reached without :::. By default it reads database$taxa rather than needing APCalign resources, so the “what did this dataset add” report works in ausinvertraits.build and AusFizz, not just austraits.build. It gained a resources argument: pass APCalign resources to judge which names are accepted against the current APC rather than the database’s taxon list, which may be out of date. It also no longer drops accepted varieties and forms, which it filtered on as varietas and forma – spellings neither APC nor the taxa table uses.

  • A context populated by literals set on the metadata traits entries no longer has to spell out a values: list. Omitting values: derives the context values from whatever var_in names, and that now covers both of the ways a var_in is legitimately satisfied: a column of data.csv, or a field set on the traits entries naming no column at all (var_in: method_context and friends). Previously only the first was, so the second read a data.csv column that was never meant to exist and aborted with rlang_error_data_pronoun_not_found, naming neither the dataset, the context_property nor the var_in (#268). Descriptions are still hand-written. A var_in matching neither is still rejected, and the message now lists both the columns and the traits fields available rather than reading as though a column were the only option.

  • A dataset may now keep its locations in a csv file beside metadata.yml rather than listing them in it, by setting locations to the file’s name — locations: locations.csv. The file holds one row per location, a location_name column and one further column per location property, which is the shape metadata_add_locations() is given and the shape austraits$locations pivots to. This is for datasets compiled from per-record georeferenced occurrences, which generate one location per record: AVH_2026 in austraits.build has 162,469 of them, making metadata.yml 487,518 lines and 17.7 MB, which is neither reviewable nor diffable. Holding them in a csv takes that file to 111 lines, and the dataset’s dataset_configure() plus dataset_process() from about 16 minutes to 17 seconds (#263). Both forms build the same database, and inline locations: blocks are unaffected — nothing needs to be converted.

  • In a locations csv, an empty cell means the location does not record that property, and .na means it is recorded but unknown — the same two states an inline locations: block distinguishes by listing a property or not. metadata_add_locations() gained a file argument for writing this form, and suggests it for a dataset with more than 1000 locations. build_setup_pipeline() declares the csv as a dependency of the dataset’s remake and targets targets, so editing it triggers a rebuild.

  • dataset_test() now decides whether a dataset has locations the same way the build does, from the formatted locations table rather than from names(metadata$locations). The two disagreed for a dataset whose entire locations: block held a single property, where dataset_test() would join against an empty table that the build had already discarded.

  • Reading a metadata.yml with a very large locations: block is no longer the dominant cost of building a dataset. yaml::read_yaml() costs roughly O(n^2) in the number of container nodes a document holds rather than in its size, so a dataset that generates one location per georeferenced record parses far slower than the trait data it describes: AVH_2026 in austraits.build, with 162,469 locations, took 911 seconds to read (#263). read_metadata() now parses a large locations: block in chunks, which brings that file down to 1.8 seconds and the whole dataset’s dataset_configure() plus dataset_process() from about 16 minutes to 46 seconds. Every chunk still goes through the same YAML parser, and anything unexpected about a file’s structure falls back to parsing it whole, so no file is read differently than before — verified against all 574 metadata.yml files in austraits.build and ausinvertraits.build.

  • build_setup_pipeline() gained method = "targets", which writes a _targets.R pipeline. Like remake it caches, so editing one dataset rebuilds that dataset rather than all of them — on a 40-dataset compilation a cold build is 33.5s, a rebuild after changing one data.csv is 6.9s, and a run with nothing changed is 0.9s. Unlike remake it is on CRAN and maintained, and unlike furrr it does not rebuild everything. It caches on target values, so a metadata edit that does not change a dataset’s output stops propagating there rather than rebuilding the compilation. Passing workers greater than 1 declares a crew controller and builds datasets in parallel. Where qs2 is installed the pipeline stores its targets with it rather than as gzipped rds, which is internal to targets and leaves the exported .rds that consumers read unchanged; on that 40-dataset compilation the two together take a cold build to 24.6s and a one-dataset rebuild to 3.6s. The exported .rds is not written by tar_make() at all: it is around a third of a rebuild and is a publishing step rather than part of checking a dataset, so build_export() writes it when it is wanted. That takes a one-dataset rebuild to 2.2s, against 154s for a full build of austraits.build. Verified to produce a database equal to the one method = "base" produces (#17). Building from _targets.R is three steps rather than one, because tar_make() neither returns the database nor writes the export, so build_setup_pipeline() now names all three — including the targets::tar_read() that loads the result — using the database_name actually in use, and the generated _targets.R says the same at the top. build_export() called with a database_name the pipeline does not have now explains that the name must match the one the pipeline was set up with, rather than reporting only target database not found.

  • dataset_test() no longer aborts with the condition has length > 1 for a dataset that declares more than one identifier. metadata$identifiers is a list, so is.na() on it returns one value per identifier.

  • Builds are now reproducible across machines. observation_id, location_id and the context ids were generated by sorting with sort() and as.factor(), which collate according to the session’s LC_COLLATE. The same dataset therefore produced different ids on a contributor’s machine than on CI, which runs in the C locale (#29). Ids are now always generated using C-locale collation, matching what previous builds produced on CI, so existing outputs are unchanged. util_separate_and_sort() is likewise no longer locale-dependent.

  • process_format_identifiers() no longer fails with object 'schema' not found. Its third argument is the schema, as documented, rather than the trait data, and it now reads the identifiers list it is passed instead of looking one level too deep. dataset_test() was erroring on every dataset that declares identifiers.

  • A context whose var_in names a column that isn’t there is now reported as such, naming the dataset, the context_property and the missing column, and suggesting the nearest column name. It previously aborted with Assigned data `xxx[context_cols[[v]]]` must be compatible with existing data, which named none of the three and read as a data-length problem rather than a typo (#247). A var_in that names a field on the metadata traits entries rather than a column of data.csv — var_in: method_context and friends — is still accepted, as is one created by custom_R_code.

  • metadata_add_contexts() no longer writes time-valued contexts as a number of seconds (9:00:00 became 32400.0) when called with user_responses, and now reports when a time column has been reformatted so the recorded values can be recognised as matching data.csv (#49).

  • metadata_add_contexts(), metadata_add_traits() and metadata_add_identifiers() now guess column types from the same number of rows as the build (guess_max = 100000), so a sparse column can no longer be typed one way when metadata is written and another way when the database is built.

  • metadata_add_source_doi() now reports clearly that the optional rcrossref package is needed, and offers to install it in interactive sessions, instead of failing with there is no package called 'rcrossref' (#178).

  • Corrected the link to the AusTraits source repository, which had been misspelled autraits.build in DESCRIPTION, the package documentation and NEWS.md, and pointed at a URL that did not resolve. The Code of Conduct and reference website links in README.md were also dead or redirecting, and now resolve directly.

  • Added CITATION.cff and inst/CITATION, so citation("traits.build") and GitHub’s “Cite this repository” widget both return the Wenk et al. (2024) paper. CITATION.cff is excluded from the package tarball via .Rbuildignore.

  • Removed a duplicated “AusTraits family” section from README.md, which had been added twice.

  • Identifiers table added, allowing trait values to be linked to a specific identifiers in an herbarium, museum collection, GenBank, or an arboretum. If a data contributor has collected data on the same individual plants across multiple datasets, these can also be linked.
  • Methods table documents the dataset’s Bibtex types, whether the data are from a Journal article, Online resource, Unpublished dataset, Thesis, etc.
  • Additional entity_type values added to schema, included standard_error, standard_deviation.
  • A collection of minor errors have been fixed - including empty datasets breaking the build process, and the wrong location name column being read in
  • traits.build paper published in Sep 2024 in Ecological Informatics (DOI: 10.1016/j.ecoinf.2024.102773)
  • Added standard error and standard deviation as value types
  • Moved functions to austraits package and made austraits package a dependancy
  • Renamed some of the functions that are now moved to austraits package
    • bind_databases <– build_combine
    • convert_df_to_list <– util_df_to_list
    • convert_list_to_df1 <– util_list_to_df1
    • convert_list_to_df2 <– util_list_to_df2
  • Renamed functions still also assigned their old name, with a deprecation warning indicating the new name
  • plot_trait_distribution_beeswarm, trait_pivot_longer and trait_pivot_wider had been in both austraits and traits.build packages and have now been removed from traits.build
  • Import new austraits function flatten_database (had been suggested to be database_create_combined_table)
  • Refactoring of test functions used by dataset_test
  • Added tests using the dataset_test function, so it is checked explicitly by traits.build (run on Example datasets)
  • Minor bug fixes
  • Minor updates to ontology (now version 1.0)
  • Small bugfixes in dataset_test
  • Add Onotology
  • Add Hex sticker

As described in #134, fixes some minor issues with

  • testing of datasets in dataset_test
  • generating of reports
  • standardising of taxonomic names.

This is the first major release of the {traits.build} package, providing a workflow to harmonise trait data from diverse sources. The code was originally built to support AusTraits (see Falster et al 2021, doi:10.1038/s41597-021-01006-6, https://github.com/traitecoevo/austraits.build) and has been generalised here to support construction of other trait databases. Detailed instructions are available at