Replaced writeAlizer:::wa_seed_example_models()
with
writeAlizer::wa_seed_example_models()
in examples and
documentation, per CRAN’s guidance to avoid accessing unexported
objects.
Exported wa_seed_example_models()
with full
documentation:
@return
(returns the created temp path
invisibly).tempdir()
and cleans up; it also restores any prior option
value.options(writeAlizer.mock_dir = <path>)
.@return
added to
import_coh()
, import_rb()
,
import_gamet()
, import_merge_gamet_rb()
.\\dontrun{}
replaced with
\\donttest{}
where needed; fast examples unwrapped;
predict_quality()
uses a tiny offline
'example'
model seeded in tempdir()
with
cleanup.tempdir()
; caching standardized via
tools::R_user_dir("writeAlizer","cache")
.wa_cache_dir()
and
wa_cache_clear(ask=)
for cache discovery/cleanup.model_deps()
reports (does not
install) optional packages and prints an install hint;
install_model_deps()
deprecated.withr
fixtures; no temp
detritus; removed deprecated global teardown.writeAlizer.mock_dir
.install_model_deps()
:
model
argument.options(writeAlizer.require_pkgs_for_fits = function() ...)
hook; dropped internal helper.Suggests
discovery path via
utils::packageDescription(..., fields = "Suggests")
.dry_run = TRUE
now returns tokens visibly (character
vector); version qualifiers are stripped only for checks/installs.artifact_registry
: prefer CSV
(inst/metadata/artifacts.csv
) and remove legacy in-code
fallback table; tighter input validation.install_model_deps()
:
options(writeAlizer.require_pkgs_for_fits = function(model, install, return_pkgs) {...})
.install_model_deps()
;
tidied roxygen..wa_ensure_file
)
with explicit cache dirs and checksum paths.download.file()
and file URLs during tests.rb_mod3all
now calls the rb_mod3all_v2
models).predict_quality()
now returns per-submodel scores
and the overall mean column
pred_<model>_mean
(where applicable).import_rb()
now keeps ReaderBench features by
name using the packaged sample_rb.csv
header
(first 404), dropping 405+. It falls back to the legacy positional
selection if the header is unavailable, reducing brittleness to column
reordering.install_model_deps()
helper to install Suggests
for a given model.rb_mod3narr_v2
, rb_mod3exp_v2
,
rb_mod3per_v2
, rb_mod3all_v2
) and Coh-Metrix
(coh_mod3narr
, coh_mod3exp
,
coh_mod3per
, coh_mod3all
).rb_mod3narr
, rb_mod3exp
,
rb_mod3per
, rb_mod3all
).predict_quality()
call..csv
.predict_quality()
now also returns an ID
variable.