Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
update r execution mode checks to match current pr
Browse files Browse the repository at this point in the history
  • Loading branch information
toph-allen committed Jul 30, 2024
1 parent 1c5712a commit 312b2d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions content/rendering-content/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ Posit Connect Content Task:
Task ID: QK2ks2BsiVv9tPsn
```

Certain content application types support rendering, while others do not. Invoking `content_render` on content that cannot be rendered will result in an error. To avoid this, check using the `content_is_rendered` function. If content does not support `content_render`, it may support the `content_render.` See [Restarting Content](../restarting-content).
Certain content application types support rendering, while others do not. Invoking `content_render` on content that cannot be rendered will result in an error. To avoid this, check the `content$is_rendered` attribute. If content does not support `content_render`, it may support the `content_render.` See [Restarting Content](../restarting-content).

```r
if (content_is_rendered(content)) {
if (content$is_rendered) {
content_render(content)
}
```
Expand Down
4 changes: 2 additions & 2 deletions content/restarting-content/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ content <- content_item(client, CONTENT_GUID)
content_restart(content)
```

Certain content application types support restarting, while others do not. Invoking `content_restart` on content that does not support it will result in an error. To avoid this, check the `content_is_interactive` attribute. If content does not support `content_restart`, it may support the `content_render.` See [Rendering Content](../rendering-content).
Certain content application types support restarting, while others do not. Invoking `content_restart` on content that does not support it will result in an error. To avoid this, check the `content$is_interactive` attribute. If content does not support `content_restart`, it may support the `content_render.` See [Rendering Content](../rendering-content).

```r
if content_is_interactive(content) {
if (content$is_interactive) {
content_restart(content)
}
```
Expand Down

0 comments on commit 312b2d7

Please sign in to comment.