get_clusterassignment and get_clusters_batch changed writer to integer
format_model_data changed docwriter and letterwriter to integer
Solution
Removed as.integer() on writer, docwriter, and letterwriter in the functions mentioned above
Recreated example_model.rda and example_analysis.rds. These examples sill use number only writer IDs but the IDs are now formatted as characters so for example writer ID 9 is now displayed as 0009.
Updated tests accordingly. Previous tests of fit_model and analyze_questioned_documents still test that the functions work on writer IDs that only contain numbers. These tests use example_model and example_analysis as the expected values.
Created new tests for fit_model and analyze_questioned_documents to check that they work properly on writer IDs that contains numbers and letters. Created model.rds and analysis.rds in tests > testthat > fixtures > template > data to use as the expected values for these tests.
Bug
get_clusterassignment
andget_clusters_batch
changed writer to integerformat_model_data
changed docwriter and letterwriter to integerSolution
as.integer()
on writer, docwriter, and letterwriter in the functions mentioned abovefit_model
andanalyze_questioned_documents
still test that the functions work on writer IDs that only contain numbers. These tests use example_model and example_analysis as the expected values.fit_model
andanalyze_questioned_documents
to check that they work properly on writer IDs that contains numbers and letters. Created model.rds and analysis.rds in tests > testthat > fixtures > template > data to use as the expected values for these tests.