Skip to content

Commit 8872153

Browse files
cdervcwickham
andauthored
Apply suggestions from code review
Thanks @cwickham! Co-authored-by: Charlotte Wickham <charlotte.wickham@posit.co>
1 parent b840a74 commit 8872153

File tree

1 file changed

+5
-2
lines changed
  • docs/blog/posts/2025-xx-xx-R-package-release-1.5

1 file changed

+5
-2
lines changed

docs/blog/posts/2025-xx-xx-R-package-release-1.5/index.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ write_yaml_metadata_block(
7474

7575
Without the automatic quoting, these values would be interpreted as decimal numbers (888 and 999) in YAML 1.2, losing the leading zeros. This could break code that expects string values like file permissions or ID codes that must preserve leading zeros.
7676

77-
This change applies to internal function that writes YAML from R objects list, and so this improvement is particularly important when using `execute_params` with `quarto_render()`, where parameter values might include such edge cases:
77+
This change applies to internal functions that write YAML from R object lists, and so this improvement is particularly important when using `execute_params` with `quarto_render()`, where parameter values might include such edge cases:
7878

7979
```r
8080
# Parameters with octal-like codes are now handled correctly
@@ -173,6 +173,7 @@ data_file <- project_path("data", "analysis.csv")
173173
root <- find_project_root()
174174
```
175175
`project_path()` <a href='https://lifecycle.r-lib.org/articles/stages.html#experimental'><img src='https://img.shields.io/badge/lifecycle-experimental-orange.svg' alt='Experimental lifecycle'></a> intelligently handles different execution contexts:
176+
176177
- During `quarto render`, it uses `QUARTO_PROJECT_ROOT` or `QUARTO_PROJECT_DIR` environment variables
177178
- In interactive sessions, it automatically detects the project root by searching for `_quarto.yml`.
178179
- Falls back to the current working directory with a warning if no project is found.
@@ -184,7 +185,7 @@ This ensures your paths work consistently without hardcoding or manual adjustmen
184185
results <- read.csv(project_path("data", "results.csv"))
185186
```
186187

187-
For more explicit control, consider using `here::i_am()` and `here::here()` as an alternative approach. Follow https://github.com/r-lib/here/issues/128 for improved support in next versions of `here`.
188+
For more explicit control, consider using `here::i_am()` and `here::here()` as an alternative approach. Follow [r-lib/usethis Issue #128](https://github.com/r-lib/here/issues/128) for improved support in next versions of `here`.
188189

189190
## Automate Quarto CLI from R {#automate-quarto-cli}
190191

@@ -247,6 +248,7 @@ detect_bookdown_crossrefs("my-bookdown-project/")
247248
```
248249

249250
The function prints detailed guidance to the console, showing:
251+
250252
- Which cross-reference patterns need manual conversion
251253
- Which patterns can be automatically converted
252254
- Specific examples from your files
@@ -371,6 +373,7 @@ Explore the new features and improvements:
371373
- Report issues: <https://github.com/quarto-dev/quarto-r/issues>
372374

373375
For detailed examples and workflows, check out the new vignettes:
376+
374377
- [Dynamic metadata](https://quarto-dev.github.io/quarto-r/articles/dynamic-metadata.html)
375378
- [Markdown in HTML tables](https://quarto-dev.github.io/quarto-r/articles/markdown-html-tables.html)
376379
- [Working with R scripts](https://quarto-dev.github.io/quarto-r/articles/r-scripts.html)

0 commit comments

Comments
 (0)