Skip to content

Add a quiet argument to init_model_methods() and expose_functions() - #1285

Merged
jgabry merged 1 commit into
v1.0from
quiet-model-methods
Sep 23, 2026
Merged

jgabry merged 1 commit into
v1.0from
quiet-model-methods

Conversation

@jgabry

@jgabry jgabry commented Sep 23, 2026

Copy link
Copy Markdown
Member

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

Closes #914

$init_model_methods() and $expose_functions() gain quiet = FALSE.
With quiet = TRUE the "Compiling additional model methods...",
"Compiling standalone functions..." and "Functions already compiled"
messages are not printed. The verbose argument still controls the
compiler output.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Jonah Gabry

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

A package that calls these repeatedly, once per dataset, prints the
"Compiling additional model methods..." notice each time with no way
to turn it off short of suppressMessages(). quiet = TRUE drops the
notices, including the "already compiled" ones from expose_functions(),
while verbose keeps controlling the compiler output.

Closes #914.
@codecov-commenter

codecov-commenter commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v1.0@90db219). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             v1.0    #1285   +/-   ##
=======================================
  Coverage        ?   93.13%           
=======================================
  Files           ?       19           
  Lines           ?     7312           
  Branches        ?        0           
=======================================
  Hits            ?     6810           
  Misses          ?      502           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jgabry
jgabry marked this pull request as ready for review September 23, 2026 20:04
@jgabry
jgabry merged commit 922aa77 into v1.0 Sep 23, 2026
15 checks passed
@jgabry
jgabry deleted the quiet-model-methods branch September 23, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn off "Compiling additional model methods..." message when calling init_model_methods

2 participants