Skip to content

Commit 235fc58

Browse files
committed
Use ASCII hyphens in destroy() docstring to fix R CMD check
R6 method docstrings are string literals (unlike #' roxygen comments), so the em-dashes I used tripped 'checking code files for non-ASCII characters', which CI runs with error_on = 'warning'. Replace them with '--'.
1 parent b84af20 commit 235fc58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/shiny.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,8 +1316,8 @@ ShinySession <- R6Class(
13161316
"Destroys a module session scope, cleaning up its reactive state and
13171317
invoking its `onDestroy()` callbacks. `namespace` must be a non-empty,
13181318
non-NA string naming a child module scope; `session$destroy(namespace)`
1319-
tears that scope down. The root scope is the absence of a namespace
1320-
`NULL` (the default) or `character(0)` and cannot be destroyed this
1319+
tears that scope down. The root scope is the absence of a namespace --
1320+
`NULL` (the default) or `character(0)` -- and cannot be destroyed this
13211321
way: calling `destroy()` with no `namespace` on the root session is an
13221322
error, since the root session is torn down via `close()`."
13231323
if (length(namespace) == 0) {

0 commit comments

Comments
 (0)