Skip to content

Handle str() spacing across R versions - #900

Merged
hadley merged 2 commits into
mainfrom
str-spacing-r-devel
Nov 5, 2026
Merged

hadley merged 2 commits into
mainfrom
str-spacing-r-devel

Conversation

@hadley

@hadley hadley commented Nov 5, 2026

Copy link
Copy Markdown
Member

🤖 Written by AI 🤖

R 4.7.0 now supplies the separator space before calling nested str() methods, which caused doubled spaces and snapshot failures on r-devel. Follows the approach of RConsortium/S7#793. Also fixes a missing trailing newline in str() for obfuscated strings.

R 4.7.0 supplies the separator space when calling nested `str()` methods, so `str()` methods for headers, obfuscated strings, and redacted values now only add a leading space when nested on older R. Also adds a missing trailing newline to `str.httr2_obfuscated()`.
@hadley
hadley merged commit d6cb7b8 into main Nov 5, 2026
11 of 13 checks passed
@hadley
hadley deleted the str-spacing-r-devel branch November 5, 2026 16:44
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.

1 participant