roxygen_todo.md

rMVPA Roxygen Documentation Plan

Package-Level Documentation

High Priority Documentation Tasks

contrast_rsa_model Function and Methods

  1. Parameter Documentation Update
  2. [x] Update @param output_metric documentation in contrast_rsa_model() to clearly state it accepts a character vector of metrics
  3. [x] Include the exact list of allowed values: "beta_delta", "beta_only", "delta_only", "recon_score", "beta_delta_norm", "composite"
  4. [x] Explain that multiple metrics can be requested simultaneously
  5. [x] Document that duplicates are removed while preserving first-occurrence order

  6. Return Value Documentation Update

  7. [x] Update @return for train_model.contrast_rsa_model() to explain it returns a named list where:

    • [x] Each list element corresponds to a requested metric from output_metric
    • [x] For metrics like "beta_delta", "beta_only", "delta_only" - elements are Q-length vectors
    • [x] For metrics like "recon_score", "composite" - elements are single numeric values
    • [x] Attribute "na_reason" may be present if any metric calculation failed
  8. Examples Update

  9. [x] Add example for contrast_rsa_model() showing multiple metrics requested: r model_multi_metric <- contrast_rsa_model( dataset = mvpa_dat, design = msreve_des, output_metric = c("beta_delta", "recon_score", "beta_only") )
  10. [ ] Add example for train_model.contrast_rsa_model() showing the structure of the returned list when multiple metrics are requested
  11. [ ] Update any other examples that use output_metric to reflect it's now a vector

  12. Print Method Update

  13. [x] Ensure print.contrast_rsa_model() correctly shows all requested metrics

Function Documentation

Exported Functions

Parameters

Return Values

Data Documentation

S3/S4 Methods and Classes

Dependencies and requireNamespace()

Vignettes

NAMESPACE Management

DESCRIPTION File

Code Style and Documentation Readability

Final Checks and Iteration

rMVPA Specific Items

Appendix: S3 Method Families

List of all S3 generic/method families found in the package:

  1. get_unique_regions()
  2. strip_dataset()
  3. select_features()
  4. format_result()
  5. merge_results()
  6. run_future()
  7. process_roi()
  8. train_model()
  9. y_train()
  10. y_test()
  11. test_design()
  12. fit_model()
  13. tune_grid()
  14. has_test_set()
  15. has_crossval()
  16. performance()
  17. compute_performance()
  18. merge_classif_results()
  19. get_samples()
  20. data_sample()
  21. as_roi()
  22. get_searchlight()
  23. wrap_output()
  24. merge_predictions()
  25. sub_result()
  26. nobs()
  27. prob_observed()
  28. nresponses()
  29. predict_model()
  30. run_searchlight()
  31. run_regional()
  32. crossval_samples()
  33. pairwise_dist()
  34. filter_roi()
  35. get_nfolds()
  36. train_indices()
  37. balance_partitions()
  38. print() (for custom classes)

For each of these generics: 1. Document the generic function fully 2. For methods, use @rdname to link to the generic's documentation 3. Only add method-specific documentation if the method has additional parameters or significantly different behavior

Roxygen Documentation To-Do for CRAN-Positive Status

This list outlines key areas and actionable items to ensure Roxygen documentation meets CRAN standards.

check off completed items when done.

I. Package-Level Documentation

II. Function Documentation (for all EXPORTED functions)

III. Data Documentation (if package includes datasets)

IV. S3/S4 Methods and Classes Documentation

V. Vignettes

VI. NAMESPACE File

VII. DESCRIPTION File

VIII. Code and Documentation Style

IX. Final Checks and Iteration

X. Specific rMVPA Items (Based on Past Interactions & Custom Instructions)



bbuchsbaum/rMVPA documentation built on June 10, 2025, 8:23 p.m.