Skip to content

Commit

Permalink
Update vignettes/articles/children/_add-deps-source.Rmd
Browse files Browse the repository at this point in the history
Co-authored-by: Zhian N. Kamvar <[email protected]>
  • Loading branch information
annakrystalli and zkamvar authored Oct 10, 2024
1 parent 6c85f6c commit ad28d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/articles/children/_add-deps-source.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Note that this ensures the additional dependency is available during validation
You could use documentation, like your hub's README to communicate additional required dependencies for validation to submitting teams. Even better, you could add a check to the top of your function to catch missing dependencies and provide a helpful error message to the user.

```{r, eval=FALSE}
if (!(requireNamespace("additionalPackage"))) {
if (!(requireNamespace("additionalPackage", quietly = TRUE))) {
stop(
"Package 'additionalPackage' must be installed to run the full validation check.
Please install and try again."
Expand Down

0 comments on commit ad28d54

Please sign in to comment.