Skip to content

Clean up the prose added for v1.0 - #1289

Merged
jgabry merged 2 commits into
v1.0from
voice-pass
Sep 25, 2026
Merged

jgabry merged 2 commits into
v1.0from
voice-pass

Conversation

@jgabry

@jgabry jgabry commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Submission Checklist

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

Summary

A clean up of the prose the v1.0 branch adds (NEWS, roxygen, the internals vignette). This PR also makes the use of backticks vs quotes consistent in error messages.

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 read of everything the v1.0 branch adds to NEWS, the roxygen and the
internals vignette, done before the release candidate. Most of the
changes make make and stanc bare lowercase words in prose, which the
new text spelled three ways; backticks stay only for code the reader
types or reads, such as `make/local` or `STANCFLAGS`. Two errors in
R/cpp_options.R now quote argument names with backticks like the rest
of the new errors, an error in R/build.R no longer reads "executable
executable", and a handful of roxygen paragraphs and vignette
sentences are shortened or split. The tests that match the changed
error text are updated to the new wording.

Part of #1258.
@jgabry jgabry added the documentation Improvements or additions to documentation label Sep 24, 2026
The messages written for v1.0 put argument names, methods and typed
expressions in backticks, while the older messages used single quotes
for the same things, so a user could meet `init` in one error and
'init' in the next. This makes backticks the rule for code the reader
types: arguments, methods such as `$code()`, classes, options,
expressions like `quiet = FALSE`, shell commands, and literal values
as `"newton"`. Values quoted back at the user, such as paths, user
header files and Stan data variable names, keep their single quotes,
since they are not code. Program and package names are bare words.

The tests and snapshots that match the changed text are updated. Two
prose lines that still backticked stanc as a program name are fixed
as well. The timeout test in test-install.R expected a message
install_cmdstan() prints only when a release URL is given, and with a
doubled asterisk; the branch only runs when no installation exists in
the temporary directory yet, so CI never saw it. It now expects the
message the default path prints.

Part of #1258.
@codecov-commenter

codecov-commenter commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.69565% with 15 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (v1.0@58de6db). Learn more about missing BASE report.

Files with missing lines Patch % Lines
R/install.R 56.25% 7 Missing ⚠️
R/build.R 20.00% 4 Missing ⚠️
R/zzz.R 0.00% 2 Missing ⚠️
R/build_record.R 0.00% 1 Missing ⚠️
R/fit.R 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             v1.0    #1289   +/-   ##
=======================================
  Coverage        ?   93.05%           
=======================================
  Files           ?       19           
  Lines           ?     7317           
  Branches        ?        0           
=======================================
  Hits            ?     6809           
  Misses          ?      508           
  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 25, 2026 01:31
@jgabry
jgabry merged commit d514b8d into v1.0 Sep 25, 2026
15 checks passed
@jgabry
jgabry deleted the voice-pass branch September 25, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants